09 2019 档案

摘要:1、对页面图片进行格式优化,以提高加载速度。webp图片是一种加快图片加载速度的图片格式,并能节省大量的服务器宽带资源和数据空间,在压缩率上比 JPEG 格式更优越,同时提供了有损压缩与无损压缩的图片文件格式,在质量相同的情况下,WebP 格式图像的体积要比 JPEG 格式图像小 40%,由于ios 阅读全文
posted @ 2019-09-30 15:00 expworld 阅读(180) 评论(0) 推荐(0) 编辑
摘要:img标签实现和背景图一样的显示效果——object-fit和object-position 阅读全文
posted @ 2019-09-30 10:03 expworld 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-29 22:41 expworld 阅读(1232) 评论(0) 推荐(0) 编辑
摘要:解决办法:重写user-select样式 css: user-select: text;-webkit-user-select:text; 阅读全文
posted @ 2019-09-29 16:04 expworld 阅读(1097) 评论(0) 推荐(0) 编辑
摘要:sw.js 基本写法: function send_message_to_sw(msg){ navigator.serviceWorker.controller.postMessage("Client 1 says '"+msg+"'"); } 广播写法:信息可以同步作用域下所有页面。 self.a 阅读全文
posted @ 2019-09-27 11:35 expworld 阅读(515) 评论(0) 推荐(0) 编辑
摘要:function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return decodeURI(r[2]); return null; } 阅读全文
posted @ 2019-09-25 17:51 expworld 阅读(432) 评论(0) 推荐(0) 编辑
摘要:function delParam(paramKey) { var url = window.location.href; //页面url var urlParam = window.location.search.substr(1); //页面参数 var beforeUrl = url.substr(0, url.indexOf("?")); //页面主地址(参数之前地址) var nextU 阅读全文
posted @ 2019-09-20 16:52 expworld 阅读(2937) 评论(0) 推荐(0) 编辑
摘要:FX为辅助通道! 阅读全文
posted @ 2019-09-07 23:47 expworld 阅读(2582) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-07 23:47 expworld 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-07 23:33 expworld 阅读(2307) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-07 23:18 expworld 阅读(2115) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-07 23:13 expworld 阅读(725) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-07 23:05 expworld 阅读(1384) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-07 23:04 expworld 阅读(1497) 评论(0) 推荐(0) 编辑

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