码迷,mamicode.com
首页 >  
搜索关键字:fontsize    ( 355个结果
文本属性Attributes
1.NSKernAttributeName: @10 调整字句 kerning 字句调整 2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 设置字体 3.NSForegroundColorAttributeName :[UICol ...
分类:其他好文   时间:2016-12-21 11:54:37    阅读次数:175
关于Cocos2d-x中字体的使用
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
Zepto.js 核心方法
$()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
WPF 页面导航
<Button x:Name="btnReset" Click="btnReset_Click" Content="重 置" Grid.Row="4" Grid.Column="3" FontSize="30" HorizontalAlignment="Center"/> private void ...
分类:Windows程序   时间:2016-11-28 00:23:58    阅读次数:274
Dev Express XRTable使用总结
1. XRTableCell常见属性 XRTableCell xrTableCell = new XRTableCell(); A. 字体及字体大小 xrTableCell.Font = new System.Drawing.Font("Arial", FontSize); B. 内容是否可以换行 ...
分类:其他好文   时间:2016-11-26 20:38:11    阅读次数:1533
WPF中TextBox限制输入不起作用的问题
最近再用textbox做限制输入时遇到一个莫名其妙的问题: 首先看代码: <TextBox Name="txtip1" Height="40" Width="60" FontSize="20" MaxLength="3" TextChanged="TextBox_TextChanged"> priv ...
分类:Windows程序   时间:2016-11-18 21:27:27    阅读次数:291
移动端rem设置,自动更改html<font-size>
加入这么一段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
移动端网页 rem 自适应布局
(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代表字体,常见创建方法有以下几个:+ (UIFont *)systemFontOfSize:(CGFloat)fontSize; 系统默认字体+ (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize; 粗体+ (UIFont *)italicS ...
分类:其他好文   时间:2016-11-06 02:02:03    阅读次数:203
vue中,class、内联style绑定
1.绑定Class ①对象语法 ②数组语法 三元表达式: 表明始终添加classA,在isB为true时添加classB 2.绑定内联style !注意:margin-left写成marginLeft 也可以绑定到一个样式对象 同样注意font-size写成fontSize,否则会出错。 ...
分类:其他好文   时间:2016-10-18 18:29:25    阅读次数:111
355条   上一页 1 ... 12 13 14 15 16 ... 36 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!