图片由模糊变清楚
<style> img{ width:200px; height:200px; } </style> <img id="img1" src="高清图片.jpg" style="display:none"> <img id="img" src="模糊图片.jpg"> <script> document.getElementById("img1").onload=function(){ document.getElementById("img1").style.display="block" document.getElementById("img").style.display="none" } </script>
建议https://github.com/ccforward/progressive-image