This is an image-loading project
功能:图片加载自适应父容器div 使用说明:1、引入zepto.js 2、引入scaleImage.js 3、对需要使用该效果的img标签加上 'data-scaleImg' 属性 注意:如果dom元素使用的是动态加载,应在加载完成dom后调用
步骤: git clone https://github.com/Chang-Chen/Image-loading.git
cd image-loading/
npm install
open index.html