CSS中怎么格式化頁面布局-創(chuàng)新互聯(lián)

這篇文章給大家介紹CSS中怎么格式化頁面布局,內(nèi)容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。

創(chuàng)新互聯(lián)公司專注于橋東企業(yè)網(wǎng)站建設(shè),響應(yīng)式網(wǎng)站建設(shè),商城網(wǎng)站定制開發(fā)。橋東網(wǎng)站建設(shè)公司,為橋東等地區(qū)提供建站服務(wù)。全流程按需定制開發(fā),專業(yè)設(shè)計,全程項目跟蹤,創(chuàng)新互聯(lián)公司專業(yè)和態(tài)度為您提供的服務(wù)

代碼如下:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
 <title> New Document </title>  
 <meta name="Generator" content="EditPlus">  
 <meta name="Author" content="">  
 <meta name="Keywords" content="">  
 <meta name="Description" content="">  
 <style type="text/css">  
   <!--  
   body{background:#ffcc99;}  
   #header{margin:0px auto;width:1000px;height:100px;background:#FFFFCC;}  
   #menu{margin:5px auto;width:1000px;height:30px;line-height:30px;color:#99FF99;  
         font-weight:bold;font-size:14px;background:#6699FF;}  
   #content{margin:5px auto;width:1000px;height:400px;background-color:#cccccc;}  
   .content_left{float:left;width:200px;height:400px;background:#cc99ff;}  
   .content_center{float:left;width:590px;height:400px;margin-left:5px;background:#cc99ff;}  
   .content_right{float:left;width:200px;height:400px;margin-left:5px;background:#cc99cc}  
       
   #footer1{margin:5px auto;background-color:#5185E6;color:#FFFFFF;  
           border-top:0px solid #F7F7F6;height:30px;line-height:30px;  
           width:1000px;padding:5px 0;text-align:center;}  
 
   #footer2{margin:5px auto;background-color:#3333FF;color:#FFFFFF;  
           border-top:0px solid #F7F7F6;height:30px;line-height:30px;  
           width:1000px;padding:5px 0;text-align:center;}  
 
   a{  
       text-decoration:none;  
   }  
 
   -->  
 </style>  
</head>  
     
<body>  
 <div id="header">頁面頭部</div>  
   <div id="menu">  
   頁面導(dǎo)航  
       <tr>  
       <td>  
       <a href="" target="_blank"  >首頁    <a href="" target="_blank" >日志    <a href="" target="_blank" >相冊    <a href="" target="_blank" >留言板    <a href="" target="_blank" >狀態(tài)  
       </td>  
       </tr>  
   </div>  
   <div id="content">  
       <div class="content_left">左側(cè)欄</div>  
           <div class="content_center">中間內(nèi)容</div>  
       <div class="content_right">右側(cè)欄</div>  
   </div>  
   <div id="footer1">滾動信息欄</div>  
   <div id="footer2">底部</div>  
</body>  
</html>



實現(xiàn)效果:
CSS中怎么格式化頁面布局

關(guān)于CSS中怎么格式化頁面布局就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

本文題目:CSS中怎么格式化頁面布局-創(chuàng)新互聯(lián)
URL鏈接:http://muchs.cn/article30/dhiepo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、手機網(wǎng)站建設(shè)品牌網(wǎng)站制作、網(wǎng)站設(shè)計公司、建站公司、網(wǎng)站排名

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)