2017-05-27 1 views
0

私はJQuery swiperを使用してスライドショーを作成しますが、サイズが異なる複数の画像がある場合はJauery swiper cant画像を正しく管理できません。ここでJQuery Swiperは別の画像サイズを管理します

は、結果のスクリーンショットです: enter image description here

そしてここでは私のコードです:

Swiper('#swiper', { 
     direction: 'horizontal', 
     loop: false, 
     autoplay: 2000, 
     autoplayDisableOnInteraction: true, 

     nextButton: true, 
     prevButton: true, 

     zoom: true, 
     centeredSlides: true, 
     calculateHeight: true, 

     pagination: '.swiper-pagination', 
     paginationClickable: true, 
     slidesPerView: 5, 
     spaceBetween: 30, 
    }); 

答えて

0

は、あなたがオーバーフローを防ぐために、画像に幅を設定していることを確認します。 img { max-width: 100%; }

よう

何かがそれ以上に診断できるようにするには、あなたのHTMLのソースコードが必要になります。

関連する問題