CSS中怎么格式化頁面布局

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

成都創(chuàng)新互聯(lián)專注于中大型企業(yè)的網(wǎng)站設(shè)計、成都做網(wǎng)站和網(wǎng)站改版、網(wǎng)站營銷服務(wù),追求商業(yè)策劃與數(shù)據(jù)分析、創(chuàng)意藝術(shù)與技術(shù)開發(fā)的融合,累計客戶近1000家,服務(wù)滿意度達(dá)97%。幫助廣大客戶順利對接上互聯(lián)網(wǎng)浪潮,準(zhǔn)確優(yōu)選出符合自己需要的互聯(lián)網(wǎng)運(yùn)用,我們將一直專注品牌網(wǎng)站制作和互聯(lián)網(wǎng)程序開發(fā),在前進(jìn)的路上,與客戶一起成長!

代碼如下:


<!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>


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

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

網(wǎng)頁題目:CSS中怎么格式化頁面布局
轉(zhuǎn)載注明:http://muchs.cn/article28/geshjp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、搜索引擎優(yōu)化、外貿(mào)建站做網(wǎng)站、網(wǎng)站建設(shè)定制網(wǎng)站

廣告

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

手機(jī)網(wǎng)站建設(shè)