右上角添加时间水印 ffmpeg -i 0.ts -vf drawtext="fontfile=arial.ttf:x=w-tw:fontcolor=white:fontsize=30:text='%{localtime\:%H\\\:%M\\\:%S}'" 123.ts Input #0, mpe ...
分类:
其他好文 时间:
2017-03-31 23:31:42
阅读次数:
876
设置Binding的ValidationRules属性对Binding进行检验 <StackPanel> <TextBox x:Name="txtAge" FontSize="30" Foreground="Red"></TextBox> <TextBlock x:Name="errorSummar ...
size();window.onresize = function(){ size();}function size(){ var htnl_o=document.getElementsByTagName("html")[0]; htnl_o.style.fontSize = window.inne ...
分类:
Web程序 时间:
2017-03-26 20:03:47
阅读次数:
178
(function () { function o() { document.documentElement.style.fontSize = (document.documentElement.clientWidth ) / 31.25 + "px" } var e = nu... ...
分类:
移动开发 时间:
2017-03-23 16:38:54
阅读次数:
152
HTML标签1、<strong><strong>标签和<em>标签一样,用于强调文本,但它强调的程度更强一些。2、<font><font>规定文本的字体、字体尺寸、字体颜色。例如:<fontsize="3"color="red">Thisissometext!</font><fontsize="2"color="blu..
分类:
其他好文 时间:
2017-03-06 15:15:27
阅读次数:
147
1. 关于字体大小、图片大小、块元素大小的确定,目前一种方法,使用rem,rem的计算方式 document.documentElement.style.fontSize = document.documentElement.clientWidth / 10.8 + 'px'; 其中10.8是设计图 ...
分类:
微信 时间:
2017-02-28 15:06:12
阅读次数:
1151
方法一:设置fontsize 按照iphone 5的适配 1em=10px 适配320 方法二:按照iPhone6的尺寸设计 是375/25=15px 方式三:采用media 推荐使用的 js方式设置 ...
分类:
移动开发 时间:
2017-02-23 17:27:59
阅读次数:
400
这个6.4就是根据设计稿的横向宽度640来确定的,假如你的设计稿是750 那么 html.style.fontSize = windowWidth / 7.5 + 'px'; (1)至此,font-size的基础值就确定好了,而且知道该font-size值是手机deviceWidth跟设计稿的比例值 ...
分类:
移动开发 时间:
2017-01-20 14:47:23
阅读次数:
215
控制器 function yzm() { /*$config = array( 'fontSize' => 30, // 验证码字体大小 'length' => 4, // 验证码位数 'useImgBg'=>true, 'useZh'=>true, 'fontttf'=>'SIMYOU.TTF', ...
分类:
其他好文 时间:
2016-12-27 13:58:42
阅读次数:
386
//获取字符串的宽度 -(float)widthForString:(NSString *)value fontSize:(float)fontSize andHeight:(float)height { UIColor *backgroundColor=[UIColor blackColor]; ... ...
分类:
移动开发 时间:
2016-12-26 21:49:54
阅读次数:
288