日期:2013-6-3 来源:GBin1.com
Least.js是一个jQuery开发的图片画廊,可以用来展示Pininterest风格的图片布局,它将无需的列表项目通过随机方式来加载。如果你点击任何图片的话,并不显示一个更大版本的图片,而是滑动其它的图片,在顶端生成更大的图片,类似Google图片搜索风格。
这个插件使用HTML5/CSS3的特性并且支持响应式的布局。
如何使用
导入类库
JS
<!-- least.js CSS-file -->
<link href="css/least.min.css" rel="stylesheet" />
<!-- jQuery libary -->
<script src="http://code.jquery.com/jquery-latest.js" defer="defer"></script>
<!-- least.js JS-file -->
<script src="js/least.min.js" defer="defer"></script>
<!-- Lazyload JS-file -->
<script src="js/jquery.lazyload.js" defer="defer"></script>
HTML
<section>
<ul id="gallery">
<li id="fullPreview"></li>
<li>........
via 极客标签
来源:支持Lazy loading的图片画廊jQuery插件 - Least.js