摘要: lodash moment request glob 阅读全文
posted @ 2016-12-21 11:17 Byronvis 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-09 17:01 Byronvis 阅读(399) 评论(0) 推荐(0) 编辑
摘要: function ready(fn){ if(document.addEventListener) { document.addEventListener('DOMContentLoaded', function() { //注销事件, 避免反复触发 document.removeEventListener('DOMContentLoaded',arguments.callee, false);... 阅读全文
posted @ 2016-09-04 12:19 Byronvis 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,只有链接元素和表单元素可通过tab按键获得焦点。 如果对其它元素使用tabindex属性也可以获得焦点,并可以实现focus()方法。 如果其它元素通过tab键获得焦点,只需将tabindex值为-1 阅读全文
posted @ 2016-05-27 18:24 Byronvis 阅读(2061) 评论(0) 推荐(1) 编辑
摘要: document.documentElement.offsetheight ==>html高度 document.documentElement.clientHeight ==> 窗口可见区域高度 document.body.clientHeight ==> body对象高度 document.bo 阅读全文
posted @ 2016-05-07 20:29 Byronvis 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: $(window).scrollTop()+$(window).height()<=$(document).height() 阅读全文
posted @ 2016-05-07 19:40 Byronvis 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 目录: 一,水平布局 二,垂直布局 三,两列布局 四,三列布局 五,多列布局 六,等高布局 一,水平布局 1,text-align 2,margin 3,position 4,table 5,flex 1)justify-content 2)margin 二,垂直布局 1,vertical-alig 阅读全文
posted @ 2016-05-01 14:38 Byronvis 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 转载 http://www.xuanfengge.com/css3-drawing-various-graphic-effects.html 阅读全文
posted @ 2016-04-17 13:03 Byronvis 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 单行文本溢出 多行文本溢出 阅读全文
posted @ 2016-04-17 11:17 Byronvis 阅读(4974) 评论(0) 推荐(0) 编辑
摘要: css选择器的匹配规则是从右向左。和常规思维不同。 css选择器限制个数最好不超过4层。 Google 资深web开发工程师 Steve Souders 对 CSS 选择器的执行效率从高到低做了一个排序: 根据以上「选择器匹配」与「选择器执行效率」原则,我们可以通过避免不恰当的使用,提升 CSS 选 阅读全文
posted @ 2016-04-12 20:17 Byronvis 阅读(246) 评论(0) 推荐(0) 编辑