引入:<script type="text/javascript" src="${base}/resources/shop/js/jquery.lazyload.js"></script> var $logo = $("#list img");
$logo.lazyload({
threshold: 100, //默认情况下图片会出现在屏幕时加载. 如果你想提前加载图片, 可以设置threshold
选项, 设置 threshold 为 200 令图片在距离屏幕 200 像素时提前加载.
effect: "fadeIn" //淡入效果
}); 可参考: http://www.w3cways.com/1765.html
http://www.tuicool.com/articles/qUb6Rve