上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: document.addEventListener('touchmove', function(e) { e.preventDefault();}); 阅读全文
posted @ 2017-04-11 13:31 SKILL·NULL 阅读(330) 评论(0) 推荐(0)
摘要: 效果: 阅读全文
posted @ 2017-04-06 10:11 SKILL·NULL 阅读(279) 评论(0) 推荐(0)
摘要: 周知,表格的斑马条纹只需简单的运用伪类 :nth-child()/:nth-of-type()来处理就好了: tr:nth-child(even){ background-color: rgba(0,0,0,.2); } 但是把这种效果运用在文本行的时候就有点力不从心了,尽管js可以实现这种功能,但 阅读全文
posted @ 2017-04-06 09:38 SKILL·NULL 阅读(218) 评论(0) 推荐(0)
摘要: 如果你的项目中console.log了很多信息,但是发到生产环境上又不想打印这些信息,这时候就需要设置一个全局变量,如:debug, 用正则匹配一下参数: 阅读全文
posted @ 2017-04-05 15:27 SKILL·NULL 阅读(2893) 评论(0) 推荐(0)
摘要: 以前写毛玻璃用的都是图层覆盖-->传送门,看了 LEA VEROU 的《CSS揭秘》后才发现还有更优雅的毛玻璃: 阅读全文
posted @ 2017-03-31 18:40 SKILL·NULL 阅读(241) 评论(0) 推荐(0)
摘要: 酷炫的CSS3 静态效果图: 阅读全文
posted @ 2017-03-31 17:13 SKILL·NULL 阅读(864) 评论(0) 推荐(0)
摘要: 一、判断当前所在系统 二、判断当前浏览器内核 三、判断浏览器是否安装 Adobe Flash Player 阅读全文
posted @ 2017-03-17 16:01 SKILL·NULL 阅读(760) 评论(0) 推荐(0)
摘要: DEMO: <!DOCTYPE html><html> <head> <title>滚动播报</title> <meta charset="UTF-8"> <style> .content { height: 60px; background-color: #2c2c34; overflow: hi 阅读全文
posted @ 2017-02-16 18:42 SKILL·NULL 阅读(819) 评论(0) 推荐(0)
摘要: 在 vue 中用 document 获取 dom 节点进行节点样式更改的时候有可能会出现 'style' is not definde的错误, 这时候可以在 mounted 里用 $refs 来获取样式,并进行更改: 阅读全文
posted @ 2017-02-09 15:43 SKILL·NULL 阅读(42785) 评论(0) 推荐(0)
摘要: 把data里的变量继承过来重新封装一下 let that = this; this.rightAnswer = false; setTimeout(function() { that.rightAnswer = true; }, 1500) 阅读全文
posted @ 2017-02-07 14:41 SKILL·NULL 阅读(4789) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页