Authored by 2586703@qq.com

代码规范

... ... @@ -17,8 +17,8 @@ exports.init = function() {
$(this).mlellipsis(2);
});
//图片懒加载
var options;
var settings = {
threshold : 0, // 灵敏度. 提前加载, 值为像素值
failure_limit : 0, // 容差范围. 检查是否在显示区域内,默认找到第 1 张不可见的图片时,就终止遍历
... ... @@ -31,9 +31,7 @@ exports.init = function() {
load : null, // 图片加载后的事件 (Function)
placeholder : "data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=="
};
//图片懒加载
$.extend(settings, options || {});
$.extend(settings, options || {});
setTimeout(function(){
$("img.lazy").lazyload(options);
}, 0)
... ...
... ... @@ -19,7 +19,7 @@ $pxConvertRem : 40;
z-index: 10;
border-bottom: 1px solid #969696;
&.fixed{
&.fixed {
position: fixed;
left: 0;
right: 0;
... ...
... ... @@ -50,9 +50,9 @@ body {
}
.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
... ...