swiper插件自动轮播怎么只显示3个div

在使用swiper插件的时候将loop设置为true,将slidesPerView设置为3,得到的是被压缩的数个div,怎么样才能让div最多只显示3个?

朋友你好 这个问题解决了么 我现在也遇到这个问题 请教

var swiper = new Swiper('.swiper-container', {
slidesPerView : 3,//这个设置多少就会显示多少
spaceBetween : 20,//这个是轮播的间距
loop : true,
noSwiping : true,
pagination : {
el : '.swiper-pagination',
clickable : true,
},
navigation : {
nextEl : '.swiper-button-next',
prevEl : '.swiper-button-prev',
},
});