直接上代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{
padding: 0;
margin: 0;
}
.fa{
width: 1200px;
height:600px;
margin: 0 auto;
overflow: hidden;
}
.fa-one{
width: 500%;
height: 100%;
position: relative;
}
.son-a{
width: 20%;
height: 100%;
text-align: center;
line-height: 600px;
font-size: 100px;
float: left;
}
#aa{
width: 100px;
height: 60px;
margin: 0 auto;
}
</style>
</head>
<body>
<div class="fa">
<div class="fa-one">
<div class="son-a" style="background-color: red;">0</div>
<div class="son-a" style="background-color: orange;">1</div>
<div class="s