现在要做下面这样一个布局的网页
<!DOCTYPE html>
<html lang="ch">
<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>
header, main, footer {
width: 1200px;
margin: 0 auto;
}
header {
width: 1200px;
height: 150px;
background-color: #eba83a;
}
main {
height: 300px;
background-color: #bb371a;
margin: 15px auto;
}
nav {
width: 250px;
height: 100%;
background-color: silver;
float: left;
}
article {
width: 660px;
height: 100%;
background-color: #bfa;
float: left;
margin: 0 20px;
}
aside {
width: 250px;
height: 100%;
background-color: tomato;
float: left;
}
footer {
height: 150px;
background-color: #d5dbb3;
}
</style>
</head>
<body>
<header>
</header>
<main>
<nav></nav>
<article></article>
<aside></aside>
</main>
<footer>
</footer>
</body>
</html>
效果