前端Swiper滑动的时候最右一个反弹回去了

如题:

查了Swiper文档发现要加这个参数

slidesPerView: 'auto',就解决这个问题了,特此记录一下。

slidesPerView:设置slider容器能够同时显示的slides数量(carousel模式)。
可以设置为number或者 'auto'则自动根据slides的宽度来设定数量。

 

posted @ 2017-03-15 17:49  永远的H  阅读(3617)  评论(2编辑  收藏  举报