这个就是基础div+flex布局
<!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>
*{
margin: 0;
padding: 0;
}
.box{
width: 100%;
height:100vh;
}
.header{
width: 100%;
height: 10%;
background: red;
}
.content{
width: 100%;
height: 80%;
display: flex;
}
.content .nav{
width: 10%;
height: 100%;
background: burlywood;
}
.content .article{
width: 80%;
height: 100%;
background: blue;
}
.content .aside{
width: 10%;
height: 100%;
background: yellow;
}
.footer{
width: 100%;
height: 10%;
background: goldenrod;
}
</style>
</head>
<body>
<div class="box">
<div class="header">
header
</div>
<div class="content">
<div class="nav">
nav
</div>
<div class="article">
article
</div>
<div class="aside">
aside
</div>
</div>
<div class="footer">footer</div>
</div>
</body>
</html>