<!DOCTYPE html>
<html lang="en">
<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">
<title>Document</title>
<style>
*{
padding:0 ;
margin: 0;
}
li{
list-style: none;
}
a{
text-decoration: none;
}
.taobao{
position: relative;
width: 520px;
height: 280px;
margin: auto;
}
.arrow-l,.arrow-r{
position: absolute;
top: 50%;
margin-top: -15px;
width: 20px;
height: 30px;
line-height: 30px;
background-color: rgba(0,0,0.2);
color: #fff;
}
.arrow-l{
border-radius: 0 15px 15px 0;
color: #fff;
}
.arrow-r{
right: 0;
border-radius: 15px 0 0 15px;
text-align: right;
}
.circle {
position: absolute;
left: 50%;
margin-left: -35px;
bottom: 15px;
width: 70px;
height: 13px;
background-color: rgba(255,255,255, 0.2);
border-radius: 6px;
}
.circle li {
float: left;
height: 8px;
width: 8px;
background-color: #fff;
margin: 3px;
border-radius: 50%;
}
.circle .current{
background-color: #ff5000;
}
</style>
</head>
<body>
<div class="taobao">
<a href="#" class="arrow-l"><</a>
<a href="#" class="arrow-r">></a>
<img src="images/taobao.jpg" alt="">
<ul class="circle">
<li></li>
<li></li>
<li class="current"></li>
<li></li>
<li></li>
</ul>
</div>
</body>
</html>
淘宝界面轮播图
最新推荐文章于 2021-12-23 10:48:21 发布