HTML-DIV布局,div布局

來源:互聯網
上載者:User

HTML-DIV布局,div布局

 1 <DOCTYPE html> 2 <html> 3     <head> 4         <meta http-equiv="Content-Type" content="text/html" charset="utf-8"/> 5         <title>div布局</title> 6         <style type="text/css"> 7             div#container 8             { 9             width:800px;10             }11             div#header12             {13                background-color:#99bbbb;14             }15             div#menu16             {17             background-color:#ffff99;18             height:450px;19             width:200px;20             float:left;21             }22             div#content23             {24             background-color:#EEEEEE;25             height:450px;26             width:600px;27             float:left;28             }29             div#footer30             {31             background-color:#99bbbb;32             text-align:center;33             clear:both;34             }35             h136             {37                margin-bottom:0;38             }39         </style>40     </head>41     <body>42         <div id="container">43             <div id="header">44                 <h1>Main Tilte of the web  page</h1>45             </div>46             <div id="menu">47                 <h2>Menu</h2>48                 <p>無序列表</p>49                 <ul>50                     <li>HTML</li>51                     <li>CSS</li>52                     <li>JavaScript</li>53                     <li>Jquery</li>54                 </ul>55                 <p>有序列表</p>56                 <ol>57                     <li>電視機</li>58                     <li>冰箱</li>59                     <li>空調</li>60                 </ol>61                 <p>自訂欄表</p>62                 <dl>63                     <dt>科目</dt>64                     <dd>語文</dd>65                     <dd>數學</dd>66                     <dd>英語</dd>67                 </dl>68             </div>69             <div id="content">Content goes here</div>70             <div id="footer">Copyright W3CSchool.com.cn</div>71         </div>72     </body>73 </html>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.