index.html 1.4 KB
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>首页</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/swiperthree.css">
</head>
<body>
<div class="container">
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <img src="image/banner.png" alt="">
            </div>
            <div class="swiper-slide">
                <img src="image/banner.png" alt="">
            </div>
            <div class="swiper-slide">
                <img src="image/banner.png" alt="">
            </div>
        </div>
        <div class="swiper-pagination"></div><!--分页器。如果放置在swiper-container外面,需要自定义样式。-->
    </div>
</div>


</body>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/swiper4.min.js"></script>
<script>
    var mySwiper = new Swiper('.swiper-container',{
        pagination: {
            el: '.swiper-pagination',
            clickable :true,
            loop : true,
        },
    })
</script>

</html>