swiper用法(此处以3.xxx为例)
1.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--引入swiper.css插件css样式-->
<link href="https://cdn.bootcss.com/Swiper/3.2.5/css/swiper.css" rel="stylesheet">
<style type="text/css">
.swiper-container {
width: 600px;
height: 300px;
}
</style>
</head>
<body>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide" style="background-color: rgba(200,50,70,0.2);">Slide 1</div>
<div class="swiper-slide" style="background-color: orange;">Slide 2</div>
<div class="swiper-slide" style="background-color: rgba(0,0,0,0.2);">Slide 3</div>
</div>
<!-- 如果需要分页器 -->
<div class="swiper-pagination"></div>
<!-- 如果需要导航按钮 -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<!-- 如果需要滚动条 -->
<div class="swiper-scrollbar"></div>
</div>
<!--引入swiper.js