Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jieyou/lazyload
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyou committed Feb 28, 2017
2 parents 24c58bb + f3a1da8 commit 2de2da3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ h3. Basic
<!-- 或 <script src="zepto.js"> -->
<script src="lazyload.min.js"></script></pre>

或者用 Bower (http://bower.io/) 安装:

<pre>
bower install jieyou_lazyload
</pre>

你必须改写你的HTML代码。真实图像的URL必须被放入到`data-original`属性中。给所有需要延迟加载图片一个特殊的class是一个好主意。这样你就可以很容易地控制哪些图片会被插件绑定到。请注意,你的图片应该有宽度和高度属性,或者通过CSS来控制图片的宽度和高度,或者通过某些手段来确保它有正确的宽度和宽度。

<pre>
Expand Down Expand Up @@ -669,4 +675,4 @@ h4. The removal of skip_invisible attribute

h2. License

All code licensed under the "MIT License":http://www.opensource.org/licenses/mit-license.php. All images licensed under "Creative Commons Attribution 3.0 Unported License":http://creativecommons.org/licenses/by/3.0/deed.en_US. In other words you are basically free to do whatever you want. Just don't remove my name from the source.
All code licensed under the "MIT License":http://www.opensource.org/licenses/mit-license.php. All images licensed under "Creative Commons Attribution 3.0 Unported License":http://creativecommons.org/licenses/by/3.0/deed.en_US. In other words you are basically free to do whatever you want. Just don't remove my name from the source.
17 changes: 17 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "jieyou_lazyload",
"main": "lazyload.js",
"version": "1.4.1",
"homepage": "https://github.com/jieyou/lazyload",
"authors": [
"jieyou <[email protected]>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}

0 comments on commit 2de2da3

Please sign in to comment.