jquery的图片轮播流程图怎么写
发布网友
发布时间:2022-04-20 06:43
我来回答
共1个回答
热心网友
时间:2022-04-20 14:47
用不用JQuery都行,直接引入Swiper插件就好了,体积小,又省时
<link rel="stylesheet" href="path/to/swiper.min.css">
<script src="path/to/swiper.min.js"></script>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">图1</div>
<div class="swiper-slide">图2</div>
<div class="swiper-slide">图3</div>
</div>
</div>
<script>
var mySwiper = new Swiper ('.swiper-container');
</script>