swiper移动端上左右滑动不了

var swiper = new Swiper('.swiper-container', {
mode: 'horizontal',
pagination: '.swiper-pagination',
loop: true,
observer: true,//修改swiper自己或子元素时,自动初始化swiper
observeParents: true//修改swiper的父元素时,自动初始化swiper
});

猜你喜欢

转载自www.cnblogs.com/lude1994/p/11364670.html
0条评论
添加一条新回复