仿京东
<!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>
*{
margin: 0;
padding: 0;
}
ul{
list-style: none;
}
.box{
width: 590px;
height: 470px;
border: 5px solid rgb(179, 167, 167);
margin: 0 auto;
position: relative;
}
.box p{
font-size: 20px;
/* font-weight: bold; */
background-color: rgba(0,0,0,0.3);
color: white;
width: 25px;
height: 35px;
position: absolute;
line-height: 35px;
text-align: center;
}
.box .lef{
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
top:50%;
left: 0;
}
.box .rig{
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
top:50%;
right: 0;
}
.box ul{
position: absolute;
bottom: 10px;
left: 10px;
}
.box ul li{
float: left;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: rgb(204, 167, 167);
margin-right: 5px;
}
.box ul li:hover{
background-color: #fff;
}
</style>
</head>
<body>
<div class="box">
<img src="img/q.jpg" alt="">
<p class="lef"><</p>
<p class="rig">></p>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</body>
</html>