<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>新增标签</title>
<style type="text/css">
.container {
width: 800px;
margin: 20px auto;
/*background-color: pink;*/
}
.container header {
height: 50px;
background-color: orange;
margin-bottom: 50px;
}
.container nav {
height: 50px;
margin-bottom: 20px;
background-color: red;
}
.content {
overflow: hidden;
/*background-color: skyblue;*/
}
.content article {
width: 500px;
height: 230px;
background-color: springgreen;
float: left;
padding: 20px 50px;
box-sizing: border-box;
}
.content article section {
width: 400px;
height: 150px;
background-color: aqua;
}
.content aside {
width: 250px;
height: 260px;
background-color: gold;
float: left;
margin-left: 50px;
margin-bottom: 50px;
}
.container footer {
height: 50px;
background-color: gray;
}
</style>
</head>
<body>
<div class="container">
<header>头部</header>
<nav>导航</nav>
<div class="content">
<article>
<!-- 文章内容 -->
<section>
部分
</section>
</article>
<aside>
一边 侧边
</aside>
</div>
<footer>网站底部 脚步</footer>
</div>
</body>
</html>
上述运行结果: