<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>float</title>
<style>
* {
margin: 0;
padding: 0;
}
.top {
height: 50px;
background-color: #a9aed0;
}
.banner {
width: 980px;
height: 150px;
margin: 10px auto;
background-color: #a9aed0;
}
.box1 {
width: 980px;
height: 100px;
margin: 10px auto;
}
.box1 > div {
float: left;
width: 237px;
height: 100px;
margin-right: 10px;
background-color: #a9aed0;
}
.box2 {
width: 980px;
height: 300px;
margin: 0 auto;
}
.box2 > div {
float: left;
width: 237px;
height: 300px;
margin-right: 10px;
background-color: #a9aed0;
}
.footer {
height: 100px;
background-color: #a9aed0;
margin: 10px auto;
}
</style>
</head>
<body>
<div class="top"></div>
<div class="banner"></div>
<div class="box1">
<div></div>
<div></div>
<div></div>
<div style="margin-right: 0"></div>
</div>
<div class="box2">
<div></div>
<div></div>
<div></div>
<div style="margin-right: 0"></div>
</div>
<div class="footer"></div>
</body>
</html>