<script src="jquery.min.js"></script>
<div class="slider"> <div class="slide"> <img src="image1.jpg"> </div> <div class="slide"> <img src="image2.jpg"> </div> <div class="slide"> <img src="image3.jpg"> </div> </div>
.slider { width: 800px; height: 400px; overflow: hidden; } .slide { float: left; width: 800px; height: 400px; } .slide img { width: 100%; height: 100%; }
$(document).ready(function() { $('.slider').slick(); });
本文为翻滚的胖子原创文章,转载无需和我联系,但请注明来自猿教程iskeys.com