swiper-wrapper轮滑组件(多组轮滑界面)间隔无效问题

在多组此种轮滑效果出现时,你需要加两个属性值,即

 

new Swiper('.swiper-container', {
        slidesPerView: 3,
        slidesPerColumn: 2,
        spaceBetween: 10,
        speed:300,
        autoplay: {
            delay:6000
        },
        observer:true,
        observeParents:true
    });

 

posted @ 2019-09-27 17:33  study_php_java_C++  阅读(1242)  评论(1编辑  收藏  举报