如下图:

HTML和CSS经典布局1

需求:

1. 如图

2. 可以从body标签开始。

 

 

 1 <!DOCTYPE html>
 2 <html xmlns="http://www.w3.org/1999/xhtml">
 3 <head>
 4     <title></title>
 5     <style>
 6         .section-inner {
 7             width: 970px;
 8             min-height: 500px;
 9             margin: 30px auto;
10         }
11     </style>
12 </head>
13 <body>
14     <div id="header" style="height: 50px; background: blue;">
15         
16     </div>
17     <div id="content">
18         <div class="section-inner" style="background-color: yellow;">
19             
20         </div>
21     </div>
22 </body>
23 </html>
View Code

相关文章:

  • 2021-12-14
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2021-06-25
猜你喜欢
  • 2021-09-27
  • 2021-11-18
  • 2021-07-21
  • 2021-09-30
  • 2022-01-21
  • 2022-02-25
  • 2021-06-21
相关资源
相似解决方案