2016年5月17日

摘要: writing-mode属性 实现文字垂直排版 下面是css3语法: 默认值horizontal-tb表示,文本流是水平方向(horizontal)的,元素是从上往下(tb:top-bottom)堆叠的。 vertical-rl表示文本是垂直方向(vertical)展示,然后阅读的顺序是从右往左(r 阅读全文
posted @ 2016-05-17 18:35 橘子皮0.0 阅读(158) 评论(0) 推荐(0)
 

2016年5月6日

摘要: Javascript常用方法函数收集(二) 31.判断是否Touch屏幕 function isTouchScreen(){ return (('ontouchstart' in window) || window.DocumentTouch && document instanceof Docum 阅读全文
posted @ 2016-05-06 18:08 橘子皮0.0 阅读(226) 评论(0) 推荐(0)
 
摘要: 1.字符串长度截取 function cutstr(str, len) { var temp, icount = 0, patrn = /[^\x00-\xff]/, strre = ""; for (var i = 0; i < str.length; i++) { if (icount < le 阅读全文
posted @ 2016-05-06 18:06 橘子皮0.0 阅读(162) 评论(0) 推荐(0)
 
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-05-06 17:38 橘子皮0.0 阅读(1) 评论(0) 推荐(0)