标签:
<script type="text/javascript"> $(function(){ var swiper = new Swiper(‘.swiper-container‘, { pagination: ‘.swiper-pagination‘, paginationClickable: true, speed: 500, loop: true, observer:true, observeParents:true, autoplayDisableOnInteraction : false, autoplay:500 }); }) </script>
最近遇到了这个问题,然后写了如上代码,就可以自动滚动了,记录一下以免忘记~
1) $(function(){ .... })
2) observer:true
3) observeParents:true
这代码都加上~
标签:
原文地址:http://www.cnblogs.com/banmengbanxing/p/4764294.html