06 2018 档案

摘要:配方还是一样:手淘的 lib-flexible + rem 配置 flexible 安装 lib-flexible 在命令行中运行如下安装: 1 npm i lib-flexible --save 引入 lib-flexible 在项目入口文件 main.js 里 引入 lib-flexible 1 阅读全文
posted @ 2018-06-22 11:03 风吹麦浪打 阅读(281) 评论(0) 推荐(0) 编辑
摘要:作者:阿里聚安全链接:https://www.zhihu.com/question/21979782/answer/122682029来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 跨域脚本攻击 XSS 是最常见、危害最大的网页安全漏洞。 <img src="h 阅读全文
posted @ 2018-06-20 11:10 风吹麦浪打 阅读(825) 评论(0) 推荐(0) 编辑
摘要:拦截HTTP请求 Web 技术文档 阅读全文
posted @ 2018-06-20 10:28 风吹麦浪打 阅读(152) 评论(0) 推荐(0) 编辑
摘要:经过实际操作发现,iOS系统上上下相差两个像素(也有可能是我测距离的误差) 但是Android上相差比较大,而且不同的机型相差数目不一样 产生原因 问了下技术大神,说是line-height对一部分Android手机不起作用,有自己默认的行高,默认行高为22px(这点我没有试验,不知道是否准确) 解 阅读全文
posted @ 2018-06-15 10:53 风吹麦浪打 阅读(332) 评论(0) 推荐(0) 编辑
摘要:CSS代码: dot { display: inline-block; height: 1em; line-height: 1; vertical-align: -.25em; overflow: hidden; } dot::before { display: block; content: '...\A..\A.'; white-sp... 阅读全文
posted @ 2018-06-14 17:40 风吹麦浪打 阅读(254) 评论(0) 推荐(0) 编辑
摘要:CSS代码: .noscroll, .noscroll body { overflow: hidden; } .noscroll body { position: relative; } JS代码: $.smartScroll = function(container, selectorScroll 阅读全文
posted @ 2018-06-14 17:38 风吹麦浪打 阅读(242) 评论(0) 推荐(0) 编辑
摘要:/*! * by zhangxinxu(.com) 2017-05-18 * 新版上线时候的黑色半透明镂空遮罩指引效果实现jQuery小插件 * 兼容到IE8+ * MIT使用协议,使用时候保留版权 * 更多原理和使用说明参见:http://www.zhangxinxu.com/wordpress/?p=6171 */ $.guide = function (options) { var d... 阅读全文
posted @ 2018-06-14 17:21 风吹麦浪打 阅读(556) 评论(0) 推荐(0) 编辑
摘要:方法一:使用正则表达式 语法如下: String(Number).replace(/(\d)(?=(\d{3})+$)/g, "$1,"); 举例: String(123456789).replace(/(\d)(?=(\d{3})+$)/g, "$1,"); 结果是:123,456,789 正则表达式方法使用示意截图 方法二:使用toLocaleString()方法 语法如下: Nu... 阅读全文
posted @ 2018-06-14 16:53 风吹麦浪打 阅读(402) 评论(0) 推荐(0) 编辑
摘要:CSS代码: .box { max-width: 414px; height: 480px; border: solid #000; margin: auto; overflow: auto; } .shape { float: left; width: 30px; height: 340px; shape-outside: pol... 阅读全文
posted @ 2018-06-14 16:50 风吹麦浪打 阅读(200) 评论(0) 推荐(0) 编辑
摘要:.target { filter: url("#goo"); } .ball { width: 150px; height: 150px; border-radius: 50%; background-color: #beceeb; position: absolute; } HTML代码: ... 阅读全文
posted @ 2018-06-14 16:25 风吹麦浪打 阅读(220) 评论(0) 推荐(0) 编辑
摘要:CSS代码: input { color: #333; caret-color: red; } @supports (-webkit-mask: none) and (not (caret-color: red)) { input { color: red; } input::first-line { color: #333; } } HTML代码: 阅读全文
posted @ 2018-06-14 16:22 风吹麦浪打 阅读(135) 评论(0) 推荐(0) 编辑
摘要:Document 1111 阅读全文
posted @ 2018-06-14 09:58 风吹麦浪打 阅读(399) 评论(0) 推荐(0) 编辑
摘要:Document 阅读全文
posted @ 2018-06-14 09:57 风吹麦浪打 阅读(206) 评论(0) 推荐(0) 编辑
摘要:React给添加元素增加样式 第一种方法: 第二种方法: 第三种方法: 第四种方法: style.js的代码: 阅读全文
posted @ 2018-06-08 15:21 风吹麦浪打 阅读(3160) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示