swiper初始化问题

1.当swiper loop设为true时,同时你又改变了sliderPerview的值,这时候轮播,按prev按钮到第一个时,会出现空白页;

解决办法:sliderPerview设置为auto,loopSliders设置你想要同时显示的slide个数;

2.当swiper-slide为动态添加的内容时,swiper的滑动动效会失效;

解决办法:初始化中设置observer为true;observerParent为true;

转载于:https://www.cnblogs.com/ladycat/p/7678454.html

1.当swiper loop设为true时,同时你又改变了sliderPerview的值,这时候轮播,按prev按钮到第一个时,会出现空白页;

解决办法:sliderPerview设置为auto,loopSliders设置你想要同时显示的slide个数;

2.当swiper-slide为动态添加的内容时,swiper的滑动动效会失效;

解决办法:初始化中设置observer为true;observerParent为true;

扫描二维码关注公众号,回复: 8515795 查看本文章

转载于:https://www.cnblogs.com/ladycat/p/7678454.html

猜你喜欢

转载自www.cnblogs.com/GXQi/p/12179256.html