上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 1、input 属性 spellcheck 解决啦,在input里加一句spellcheck="false"。有小点,这是ios里拼写检查的功能。当输入英文是正确的单词时,不提示小点,当输入的是乱七八糟的字母时,就会出现小点点。spellcheck="false"可以屏蔽该功能。 阅读全文
posted @ 2016-09-27 17:44 青草圆 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 当css文件中写上 charset "utf-8" 时需要将body和html的样式分开写 例如: html,body{margin:0;padding:0;font-family:"Microsoft Yahei"} 此时body的margin和padding设置不起作用,也就是没办法覆盖浏览器默 阅读全文
posted @ 2016-09-19 10:19 青草圆 阅读(1177) 评论(0) 推荐(0) 编辑
摘要: //Modal function Modal(obj){ var that = this; that.ref = ""; that.obj = obj; that.init(); } Modal.prototype = { init:function(){ var that = this; j... 阅读全文
posted @ 2016-09-12 15:05 青草圆 阅读(1185) 评论(0) 推荐(0) 编辑
摘要: jQuery.each中continue的方式是 return true break 的方式是return false 阅读全文
posted @ 2016-09-12 11:42 青草圆 阅读(2210) 评论(0) 推荐(2) 编辑
摘要: 当使用window.localStorage或者window.sessionStorage 存储json数据时需要将json数据用JSON.stringify(data)转换成json字符串再存储在本地存储,否侧直接存储json数据,下次使用时用 JSON.parse(data)无法转换成json对 阅读全文
posted @ 2016-09-09 12:02 青草圆 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 自定义按钮ui样式就是需要有label包含input以及带另外的标签作为新ui的载体,此时触发label的click的时候也会选中按钮,也就是说存在事件捕获,解决这个问题有如下方式 用到了 mousedown 和 setTimeout 阅读全文
posted @ 2016-09-06 16:53 青草圆 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 出处:http://blog.csdn.net/kkgege/article/details/49929983 之前用项目用gulp进行前端的构建,用到压缩图片插件gulp-imagemin, 后来发现每次发布图片每次都压缩一遍,太慢了 ,所以用了gulp-cache,原来10来分钟的事情,几十秒就 阅读全文
posted @ 2016-09-06 15:31 青草圆 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: cmd小技巧: 1、换到下级或同等级目录 D: 2、换到上级目录 cd.. node 包管理器小技巧[以gulp为例] npm install --save-dev gulp gulp-concat gulp-minify-css gulp-rev gulp-rev-collector 等等插件 g 阅读全文
posted @ 2016-09-05 16:47 青草圆 阅读(3500) 评论(0) 推荐(0) 编辑
摘要: //Modal function Modal(obj){ var that = this; that.ref = ""; that.obj = obj; that.init(); } Modal.prototype = { init:function(){ var that = this; j... 阅读全文
posted @ 2016-09-02 16:17 青草圆 阅读(1842) 评论(0) 推荐(0) 编辑
摘要: Edge浏览器console Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0 阅读全文
posted @ 2016-09-01 10:26 青草圆 阅读(1660) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页