<!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>
#box {
margin: 0 auto;
height: 800px;
width: 600px;
text-align: center
}
#over {
height: 200px;
width: 600px;
background-color: green;
margin: 0 auto;
}
#throught {
height: 400px;
width: 600px;
background-color: rgb(247, 20, 160);
margin: 0 auto;
}
#dibu {
height: 200px;
width: 600px;
background-color: green;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="box">
<div id="over">上部</div>
<div id="throught">中部</div>
<div id="dibu">底部</div>
</div>
</body>
</html>
07-05
1234