97 lines
2.3 KiB
HTML
97 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>轮播图</title>
|
|
<link rel="stylesheet" href="./css/clear.css">
|
|
<style>
|
|
.main {
|
|
width: 520px;
|
|
height: 280px;
|
|
border: 1px solid #000;
|
|
overflow: hidden;
|
|
position: relative;
|
|
margin: 30px auto;
|
|
}
|
|
|
|
.daohang {
|
|
position: absolute;
|
|
width: 520px;
|
|
height: 36px;
|
|
top: 50%;
|
|
margin-top: -18px;
|
|
z-index: 2;
|
|
}
|
|
.fs {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
color: #fff;
|
|
background: #000;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
cursor: pointer;
|
|
}
|
|
.dh_left {
|
|
float: left;
|
|
}
|
|
.dh_right {
|
|
float: right;
|
|
}
|
|
.lb_img{
|
|
width: 1560px;
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.lb_img li {
|
|
float: left;
|
|
}
|
|
.yd {
|
|
position: absolute;
|
|
bottom: 15px;
|
|
left: 50%;
|
|
margin-left: -37.5px;
|
|
}
|
|
.yd li {
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 100%;
|
|
background: #fff;
|
|
float: left;
|
|
margin-right: 10px;
|
|
}
|
|
.active {
|
|
background: red !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<div class="main">
|
|
|
|
<div class="daohang">
|
|
<div class="fs dh_left"> < </div>
|
|
<div class="fs dh_right"> > </div>
|
|
</div>
|
|
|
|
<ul class="lb_img" style="left: 0px">
|
|
<li><img src="https://aecpm.alicdn.com/simba/img/TB1XotJXQfb_uJkSnhJSuvdDVXa.jpg" alt=""></li>
|
|
<li><img src="https://aecpm.alicdn.com/simba/img/TB1JNHwKFXXXXafXVXXSutbFXXX.jpg" alt=""></li>
|
|
<li><img src="https://img.alicdn.com/tfs/TB1VZo7x4v1gK0jSZFFXXb0sXXa-520-280.jpg_q90_.webp" alt=""></li>
|
|
</ul>
|
|
|
|
<ul class="yd">
|
|
<li class="active"></li>
|
|
<li></li>
|
|
<li></li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
<script src="./js/swiper.js"></script>
|
|
</html> |