<!DOCTYPE html>
<html>
<head>
<meta http-equiv=“content-type” content=“text/html; charset=UTF-8” />
<meta name=“viewport” content=“width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no” />
<meta name=“apple-mobile-web-app-capable” content=“yes” />
<meta name=“apple-mobile-web-app-status-bar-style” content=“black” />
<meta name=“format-detection” content=“telephone=no”>
<title>首页</title>
<link rel="stylesheet" href="cdnjs.cloudflare.com/ajax/libs/Swiper/4.x.x/css/swiper.css">//加http
</head>
<body>
<div class=“banner”>
<div class=“swiper-container ind-ban”>
<div class=“swiper-wrapper”>
<div class="">
<a href="#"><img src="" data-src=“images/banner.jpg”/></a>
</div>
<div class=“swiper-slide”>
<a href="#"><img src="" data-src=“images/banner.jpg”/></a>
</div>
<div class=“swiper-slide”>
<a href="#"><img src="" data-src=“images/banner.jpg”/></a>
</div>
</div>
<div class=“swiper-pagination”></div>
</div>
</div>
</body>
<script src="cdnjs.cloudflare.com/ajax/libs/Swiper/4.x.x/js/swiper.js"></script>//加http
<script>
var swiper = new Swiper(’.ind-ban’, {
loop:true,
autoplay:3000,
autoplayDisableOnInteraction : false,
pagination: ‘.swiper-pagination’,
paginationClickable: true});
</script>
</html>