最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

網(wǎng)頁上中下三分布局即上下固定中間自適應(yīng)

  發(fā)布時間:2014-04-30 10:55:59   作者:佚名   我要評論
網(wǎng)頁上中下三分布局打破了傳統(tǒng)的布局方式,實現(xiàn)所謂的上下固定,中間自適應(yīng),大家可以參考學習下

復(fù)制代碼
代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- 禁止瀏覽器從本地緩存中調(diào)閱頁面。-->
<meta http-equiv="pragram" content="no-cache">
<!--網(wǎng)頁不保存在緩存中,每次訪問都刷新頁面。-->
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<!--同上面意思差不多,必須重新加載頁面-->
<!--網(wǎng)頁在緩存中的過期時間為0,一旦網(wǎng)頁過期,必須從服務(wù)器上重新訂閱-->
<meta http-equiv="expires" content="0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
* {
margin:0;
padding:0;
}
html,
body,
#box {
height:100%;
font:small/1.5 "宋體", serif;
}
body {
text-align:center;
}
#box {
text-align:left;
background:#666;
display:table;
width:80%;
margin:0 auto;
position:relative;
}
#box > div {
display:table-row;
}
#header,
#footer {
background:#fcc;
height:50px;
vertical-align:bottom;
}
#main {
background:#ccf;
}
#main #wrap {
display:table-cell;
background:#ffc;
vertical-align:middle;
}
#text {
text-align:center;
}
</style>
<!--[if IE]>
<style type="text/css">
#header,
#footer {
width:100%;
z-index:3;
position:absolute;
}
#footer {
bottom:0;
}
#main {
height:100%;
z-index:1;
position:relative;
}
#main #wrap {
position:absolute;
top:50%;
width:100%;
text-align:left;
}
#main #text {
position:relative;
width:100%;
top:-50%;
background:#ccc;
}
</style>
<![endif]-->
</head>
<body>
<div id="box">
<div id="header">header</div>
<div id="main">
<div id="wrap">
<div id="text">
<p>測試文本</p>
</div>
</div>
</div>
<div id="footer">footer</div>
</div>
</body>
</html>

相關(guān)文章

最新評論

容城县| 中方县| 邛崃市| 普定县| 东莞市| 合川市| 奈曼旗| 太白县| 西乌珠穆沁旗| 乐东| 静乐县| 绍兴县| 监利县| 突泉县| 诸暨市| 珠海市| 宁远县| 韶山市| 德州市| 泸西县| 陕西省| 崇信县| 绥化市| 城市| 肃北| 北宁市| 建水县| 东莞市| 浦东新区| 宝应县| 五原县| 龙里县| 确山县| 乐东| 五华县| 北碚区| 三河市| 龙门县| 德州市| 重庆市| 自贡市|