首页 > 其他 > 详细

swiper轮播控件配置项

时间:2017-09-05 09:42:28      阅读:337      评论:0      收藏:0      [点我收藏+]

var mySwiper = new Swiper (‘.swiper-container‘, {
   direction: ‘horizontal‘,
   loop: true,
   autoplay: 5000,
   autoplayDisableOnInteraction : false,  //控制使用分页器后,还可以自动轮播
   // 如果需要分页器
   pagination: ‘.swiper-pagination‘,
   paginationClickable :true,                 //分页器可以点击切换使用
   
   // 如果需要前进后退按钮
   nextButton: ‘.swiper-button-next‘,
   prevButton: ‘.swiper-button-prev‘,
})   

swiper轮播控件配置项

原文:http://www.cnblogs.com/Neilisme/p/7476735.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!