我对 Swiper 滑块有一些问题。当我滚动到滑块的末尾时,可以看到一些空白区域。

http://take.ms/siqXj

swiper = new Swiper(profile_images, {
    slidesPerView: 4,
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    observer: true
});

https://jsfiddle.net/x2zu5ett/1/

最佳答案

你还需要帮助吗?
尝试添加:loopFillGroupWithBlank: false,
检查我的:

var swiper2 = new Swiper('.swiper-container2', {
    slidesPerView: 'auto',
    centeredSlides: true,
    spaceBetween: 150,
    speed: 1500,
    loop: true,
    simulateTouch : true,
    loopFillGroupWithBlank: false,
    grabCursor: true,
    //touchStartPreventDefault: false,
});

关于slider - Swiper 滑块空白空间,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32650297/

10-12 23:50