版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lyd0902/article/details/79391239
效果图
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- <style type="text/css">
- .wrap{
- margin: 0 auto;
- width: 900px;
- }
- #header{
- height: 100px;
- background: #2AFFE5;
- }
- #main{
- height: 500px;
- background: #37FFC1;
- }
- #footer{
- height: 80px;
- background: #22FF91;
- }
- #middle{
- width: 100%;
- float: left;
- }
- #left{
- width: 200px;
- height: 100%;
- background: #26E8BE;
- float: left;
- margin-left: -100%;
- }
- #right{
- width: 200px;
- height: 100%;
- background: #26E8BE;
- float: left;
- margin-left: -200px;
- }
- .content{
- height: 500px;
- margin: 0 200px;
- }
- </style>
- </head>
- <body>
- <header id="header" class="wrap"></header>
- <section id="main" class="wrap">
- <section id="middle">
- <div class="content"></div>
- </section>
- <aside id="left"></aside>
- <aside id="right"></aside>
- </section>
- <footer id="footer" class="wrap"></footer>
- </body>
- </html>