bxslider calculating wrong viewport size on load

前端 未结 6 1495
醉梦人生
醉梦人生 2021-02-07 05:06

Anyway I recently started using bxslider and I\'m having an issue with it.

It seems to calculate its viewport size wrongly on page load, which means it doesn\'t work we

6条回答
  •  执笔经年
    2021-02-07 06:00

    You can use

    slider=jQuery('.seminars-slider').bxSlider({
        mode: 'vertical',
        controls:false,
        pager:false,
        minSlides:2,
        maxSlides:2,
        moveSlides:1
    });
    setTimeout(function(){
                slider.redrawSlider();
            },100);
    

提交回复
热议问题