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

如题:

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

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

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

 

文章来自:http://www.cnblogs.com/cmrcj/p/6555498.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3