swiper默认第二个且居中

Posted jiangxiaobo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了swiper默认第二个且居中相关的知识,希望对你有一定的参考价值。

var mySwiper = new Swiper (‘.swiper-bottom‘, {
  spaceBetween: 25,
  freeMode: true,
  initialSlide :1,//默认第二个
  slidesPerView: 2,//可见个数2
  centeredSlides: true,//居中
});

 

以上是关于swiper默认第二个且居中的主要内容,如果未能解决你的问题,请参考以下文章