移动端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中文官网

posted @ 2018-06-06 16:19  Peter_Yang0942  阅读(372)  评论(0编辑  收藏  举报