1.NSKernAttributeName: @10 调整字句 kerning 字句调整 2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 设置字体 3.NSForegroundColorAttributeName :[UICol ...
分类:
其他好文 时间:
2016-12-21 11:54:37
阅读次数:
175
1.如果使用的是系统自带的 static Label* createWithSystemFont ( const std::string & text, const std::string & font, float fontSize, const Size & dimensions = Size: ...
分类:
其他好文 时间:
2016-12-04 17:33:47
阅读次数:
208
$()1、$(htmlString)创建元素//创建元素
varp1=$(‘<p>HelloZepto</p>‘);
$(‘body‘).append(p1);2、$(htmlString,attributes)创建带有属性的元素//创建带有属性的元素
varp2=$(‘<p/>‘,{text:‘HelloWorld!‘,id:‘greeting‘,css:{color:‘red‘,fontSize:‘30px‘,f..
分类:
Web程序 时间:
2016-12-04 01:12:25
阅读次数:
614
<Button x:Name="btnReset" Click="btnReset_Click" Content="重 置" Grid.Row="4" Grid.Column="3" FontSize="30" HorizontalAlignment="Center"/> private void ...
1. XRTableCell常见属性 XRTableCell xrTableCell = new XRTableCell(); A. 字体及字体大小 xrTableCell.Font = new System.Drawing.Font("Arial", FontSize); B. 内容是否可以换行 ...
分类:
其他好文 时间:
2016-11-26 20:38:11
阅读次数:
1533
最近再用textbox做限制输入时遇到一个莫名其妙的问题: 首先看代码: <TextBox Name="txtip1" Height="40" Width="60" FontSize="20" MaxLength="3" TextChanged="TextBox_TextChanged"> priv ...
加入这么一段js,就可以根据屏幕的宽度动态改变font-size 根据这一句 docEl.style.fontSize = 20 * (clientWidth / 320) + 'px'; 可知 iphone4宽度是320px,那么font-size就是20px, 100px就是5rem iphon ...
分类:
移动开发 时间:
2016-11-18 15:57:43
阅读次数:
366
(function(doc,win){varDocElement=doc.documentElement;varRsizeEvent=‘orientationchange‘inwindow?‘orientationchange‘:‘resize‘;functionResetSize(){vardeviceWidth=DocElement.clientWidth;if(!deviceWidth){returnfalse;}DocElement.style.fontSize=100*(deviceWidth/75..
分类:
移动开发 时间:
2016-11-08 14:32:00
阅读次数:
237
UIFont代表字体,常见创建方法有以下几个:+ (UIFont *)systemFontOfSize:(CGFloat)fontSize; 系统默认字体+ (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize; 粗体+ (UIFont *)italicS ...
分类:
其他好文 时间:
2016-11-06 02:02:03
阅读次数:
203
1.绑定Class ①对象语法 ②数组语法 三元表达式: 表明始终添加classA,在isB为true时添加classB 2.绑定内联style !注意:margin-left写成marginLeft 也可以绑定到一个样式对象 同样注意font-size写成fontSize,否则会出错。 ...
分类:
其他好文 时间:
2016-10-18 18:29:25
阅读次数:
111