兩行一列 以下是引用片段: body { margin " /> 亚洲一品AV片观看五月色婷婷,桃色园社区,亚洲欧美日韩在线观看一区二区三区

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

CSS常用網站布局實例

單行一列
以下是引用片段:
body { margin: 0px; padding: 0px; text-align: center; }  
#content { margin-left:auto; margin-right:auto; width: 400px; width: 370px; } 

兩行一列
以下是引用片段:
body { margin: 0px; padding: 0px; text-align: center;}  
#content-top { margin-left:auto; margin-right:auto; width: 400px; width: 370px;}  
#content-end {margin-left:auto; margin-right:auto; width: 400px; width: 370px;}

三行一列
以下是引用片段:
body { margin: 0px; padding: 0px; text-align: center; }  
#content-top { margin-left:auto; margin-right:auto; width: 400px; width: 370px; }  
#content-mid { margin-left:auto; margin-right:auto; width: 400px; width: 370px; }  
#content-end { margin-left:auto; margin-right:auto; width: 400px; width: 370px; } 

單行兩列
以下是引用片段:
#bodycenter { width: 700px;margin-right: auto; margin-left: auto;overflow: auto; }  
#bodycenter #dv1 {float: left;width: 280px;}  
#bodycenter #dv2 {float: right;width: 410px;} 

兩行兩列
以下是引用片段:
#header{ width: 700px; margin-right: auto;margin-left: auto; overflow: auto;}  
#bodycenter { width: 700px; margin-right: auto; margin-left: auto; overflow: auto; }  
#bodycenter #dv1 { float: left; width: 280px;}  
#bodycenter #dv2 { float: right;width: 410px;}

三行兩列
以下是引用片段:
#header{ width: 700px;margin-right: auto; margin-left: auto; }  
#bodycenter {width: 700px; margin-right: auto; margin-left: auto; }  
#bodycenter #dv1 { float: left;width: 280px;}  
#bodycenter #dv2 { float: right; width: 410px;}  
#footer{ width: 700px; margin-right: auto; margin-left: auto; overflow: auto; } 

單行三列 
絕對定位
以下是引用片段:
#left { position: absolute; top: 0px; left: 0px; width: 120px; }  
#middle {margin: 20px 190px 20px 190px; }  
#right {position: absolute;top: 0px; right: 0px; width: 120px;} 

float定位一
xhtml: 
以下是引用片段:
<div id="warp">  
<div id="column">  
<div id="column1">這里是第一列</div>  
<div id="column2">這里是第二列</div>  
<div class="clear"></div>  
</div>  
<div id="column3">這里是第三列</div>  
<div class="clear"></div>  
</div> 

CSS: 
以下是引用片段:
#wrap{ width:100%; height:auto;}  
#column{ float:left; width:60%;}  
#column1{ float:left; width:30%;}  
#column2{ float:right; width:30%;}  
#column3{ float:right; width:40%;}  
.clear{ clear:both;} 

float定位二
xhtml:
以下是引用片段:
<div id="center" class="column">  
<h1>This is the main content.</h1>  
</div>  
<div id="left" class="column">  
<h2>This is the left sidebar.</h2>  
</div>  
<div id="right" class="column">  
<h2>This is the right sidebar.</h2>  
</div> 

CSS: 
以下是引用片段:
body {margin: 0;padding-left: 200px;padding-right: 190px;min-width: 240px;}  
.column {position: relative;float: left;}  
#center {width: 100%;}  
#left {width: 180px; right: 240px;margin-left: -100%;}  
#right {width: 130px;margin-right: -100%;} 

兩行三列
xhtml:
以下是引用片段:
<div id="header">這里是頂行</div>  
<div id="warp">  
<div id="column">  
<div id="column1">這里是第一列</div>  
<div id="column2">這里是第二列</div>  
<div class="clear"></div>  
</div>  
<div id="column3">這里是第三列</div>  
<div class="clear"></div>  
</div> 

CSS: 
以下是引用片段:
#header{width:100%; height:auto;}  
#wrap{ width:100%; height:auto;}  
#column{ float:left; width:60%;}  
#column1{ float:left; width:30%;}  
#column2{ float:right; width:30%;}  
#column3{ float:right; width:40%;}  
.clear{ clear:both;} 

三行三列 
xhtml:
以下是引用片段:
<div id="header">這里是頂行</div>  
<div id="warp">  
<div id="column">  
<div id="column1">這里是第一列</div>  
<div id="column2">這里是第二列</div>  
<div class="clear"></div>  
</div>  
<div id="column3">這里是第三列</div>  
<div class="clear"></div>  
</div>  
<div id="footer">這里是底部一行</div> 

CSS:
以下是引用片段:
#header{width:100%; height:auto;}  
#wrap{ width:100%; height:auto;}  
#column{ float:left; width:60%;}  
#column1{ float:left; width:30%;}  
#column2{ float:right; width:30%;}  
#column3{ float:right; width:40%;}  
.clear{ clear:both;}  
#footer{width:100%; height:auto;} 

JavaScript技術CSS常用網站布局實例,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 久久re6热在线视频精品66 | 国产精华av午夜在线观看 | 国产精品18久久久久网站 | 伊人久久综合影院首页 | 日韩丰满少妇无码内射 | 国产日韩精品一区二区三区在线 | 37大但人文艺术A级都市天气 | 国内精品久久久久久久试看 | 在线日本v二区不卡 | 越南美女内射BBWXZ | 泡妞高手在都市免费观看 | 乡土女性网动态图解 | 久久精品成人免费网站 | 一本道高清码 | 2018高清国产一区二区三区 | 久久精品国产欧美 | 久久亚洲网站 | 日韩免费精品视频 | 中文字幕网站在线观看 | 美女被触手注入精子强制受孕漫画 | 我不卡影院手机在线观看 | 久久88综合 | 久久免费资源福利资源站 | 含羞草完整视频在线播放免费 | 神电影院午夜dy888我不卡 | 精品国产午夜福利在线观看蜜月 | 国产女高清在线看免费观看 | 琪琪的色原网站 | 欧美亚洲曰韩一本道 | 成年性生交大片免费看 | 曰批国产精品视频免费观看 | 99视频在线观看免费 | 色裕插插插影视 | 国产成人免费片在线观看 | 俄罗斯大白屁股 | 精品香蕉99久久久久网站 | 漂亮的保姆3集电影免费观看中文 | 亚洲精品电影久久久影院 | 成人久久欧美日韩一区二区三区 | 日本一本免费线观看视频 | 神马电影院午夜神福利在线观看 |