引入swiper
1.html
<div class="inw-swipper"> <div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop1.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop2.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop3.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop3.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop3.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop3.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop3.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop1.png" alt=""> </div> </div> <div class="swiper-slide"> <div class="company-box"> <img src="images/loop1.png" alt=""> </div> </div> </div> </div> </div>
2.js
标签:false,轮播,一屏,slidesPerView,匀速,swiper From: https://www.cnblogs.com/Loreen/p/18141482