你好,我使用光滑的滑块,只想显示3个图像
但它在左侧留下了一半的图像
<div class="review-company">
div><img src="http://placehold.it/350x350"></div>
<div><img src="http://placehold.it/350x350"></div>
<div><img src="http://placehold.it/350x350"></div>
<div><img src="http://placehold.it/350x350"></div>
<div><img src="http://placehold.it/350x350"></div>
</div><!-- Review-company -->
$('.review-company').slick({
centerMode: true,
centerPadding: '60px',
slidesToShow: 3,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 3
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}
]
});
如何使它只显示左右空白空间的3张图像?
答案 0 :(得分:1)
只需将centerMode设为false
从@Yass获得它