<!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>网页布局</title>
<style>
*{
margin: 0;padding: 0;
}
header,footer{
height: 50px;background-color: blueviolet;
text-align: center;color: ghostwhite;
line-height: 50px;
}
main{
overflow: auto;
}
nav,section,aside{
float: left;
}
main>nav{
width: 25%;
}
main>section{
width: 50%;
padding:0 10px ;
box-sizing: border-box;
}
main>aside{
width: 25%;
}
P{
height: 25px;background-color: hotpink;
text-align: center;margin: 10px 0;
color: ivory;
}
</style>
</head>
<body>
<header>
header
</header>
<main>
<nav>nav
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
</nav>
<section>
<article>
article
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</article>
<article>
article
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</article>
<article>
article
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</article>
</section>
<aside>
aside
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<P>Link</P>
<p>Link</p>
</aside>
</main>
<footer>
footer
</footer>
</body>
</html>
——如有侵权
联系删除