html代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
/* 让body有20px的内边距 */
body{
padding: 20px;
}
li{
list-style: none;
}
#container{
width: 400px;
height: 250px;
overflow: hidden;
position: relative;
margin: 0 auto;
}
#list{
height: 250px;
width: 2800px;
position: absolute;
z-index: 1;
left: -400px;
}
#list img{
float: left;
}
#pointsDiv{
position: absolute;
height: 10px;
width: 100px;
z-index: 2;
bottom: 20px;
left: 200px;
/* background-color: red; */
}
#pointsDiv span {
cursor: pointer;
float: left;
border: 1px solid rgb(255,255,255);
width: 10px;
height: 10px;
border-radius: 50%;
background-color: rgb(42, 34, 90);
margin-right: 5px;
}
.arrow{
position: absolute;
z-index: 99;
width: 40px;
height: 40px;
line-height: 40px