移动端web轮播图插件swiper,功能很强大
使用方法示例:
<div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide">slider1</div> <div class="swiper-slide">slider2</div> <div class="swiper-slide">slider3</div> </div> </div> <script> var mySwiper = new Swiper('.swiper-container', { autoplay: true,//可选选项,自动滑动 }) </script>
更多api使用参考swiper中文官网