Imager.js 介绍
安装:
npm install --save imager.js
or
bower install --save imager.js
使用:
<div width: 240px">
<div class="delayed-image-load" data-src="http://placehold.it/{width}" data-alt="alternative text"></div>
</div>
<script>
new Imager({ availableWidths: [200,260,320,600] });
</script>
浏览器兼容:
Chrome 33
Firefox 22
Opera 12.15
Edge 12
Internet Explorer 8,9,10 and 11
Safari 5,6,7,8 and 9
Mobile Safari 4,5,6 and 7
Android 2,3 and 4
GitHub:https://github.com/BBC-News/Imager.js
网站描述:处理响应式图像加载问题的解决方案
Imager.js
小编说
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。