SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>布局</title>
</head>
<body>
    <header class="head"> header </header>
<main>
   <article class="article">
       article<br>
       article<br>
       article<br>
       article<br>
       article<br>
       article<br>
       article<br>
       article<br>
       article<br>
       article<br>
    </article>
   <nav class="nav">
       nav<br>
       nav<br>
       nav<br>
       nav<br>
       nav<br>
       nav<br>
       nav<br>
       nav<br>
    </nav>
   <aside class="aside">
       aside<br>
       aside<br>
       aside<br>
       aside<br>
       aside<br>
       aside<br>
       aside<br>
       aside<br>
       aside<br>
    </aside>
</main>
<footer class="footer">footer</footer>
</body>
</html>
body {
    margin: 0;
	text-align: center;
	font-size: 30px;
    display: flex;
	flex-direction: column;
}
main{
    flex: 1;
	display: flex;
}
.head {
    height: 100px;
	width: 100%;
    background-color: tomato;
    border-radius: 10px;
}
.nav {
    width: 300px;
    background-color: teal;
    border-radius: 10px;
     order: 1;
}
.article {
    width: 300px;
    background-color: thistle;
    border-radius: 10px;
    order: 2;
    flex-grow: 1;
}
.aside {
    width: 300px;
    background-color: violet;
    border-radius: 10px;
    order: 3;
}
.footer {
    width: 100%;
    height: 100px;
    background-color: yellowgreen;
    border-radius: 10px;
}