頁(yè)面引入swiper,初始狀態(tài)。 <div class="swiper-wrapper"> <div class="swiper-slide"><img src="images/banner4.jpg" alt="杯子"/></div> <div class="swiper-slide"><img src="images/banner1.jpg" alt="杯子"/></div> <div class="swiper-slide"><img src="images/banner2.jpg" alt="杯子"/></div> <div class="swiper-slide"><img src="images/banner3.jpg" alt="杯子"/></div> </div> </div> <script type="text/javascript"> var mySwiper = new Swiper('.swiper-container',{ loop: true, autoplay: 3000, }); </script>自己沒(méi)有在這塊加任何CSS樣式,每個(gè)滑塊的<img>圖片高度都是350px;可是打開(kāi)頁(yè)面,每個(gè)swiper-slide的height就自動(dòng)變成2000多px,這是怎么回事啊。高度2000多px,都把下面內(nèi)容擠到底部了。
關(guān)于swpier的問(wèn)題
慕斯709654
2018-08-07 06:11:58