您的位置:首页 > 其它

Div全屏幕自动伸缩非常适合做后台管理 (不兼容IE6)

2009-12-29 13:19 302 查看
自己根据需要写的一部分代码,参考了动网的后台的框架.

已经兼容以下最新的浏览器:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
html, body { margin:0 auto; }
.TopFram { background-color:#666; height:160px; overflow:hidden; z-index:1 }
.MiddleFram { bottom:30px; right:0; position:fixed; left:0; top:160px; z-index:0; }
.BottomFram { height:30px; overflow:hidden; width:100%; position:fixed; bottom:0px; background-color:#333; z-index:1 }
.FramArea { border:none; bottom:0; display:block; height:auto; position:absolute; top:0; width:100%; height:100%; }
.LeftFram { background-color:#CCC; display:block; float:left; position:relative; width:300px; height:100%; overflow:auto; z-index:0; margin:0 4px 0 0; padding:0; }
.RightFram { background-color:#999; overflow:auto; height:100%; border:0 none; position:relative; z-index:0; margin:0; padding:0 }
</style>
<title></title>
</head>
<body>
<div class="TopFram"> TopFram </div>
<div class="MiddleFram">
<div class="FramArea">
<div class="LeftFram"> LeftFram </div>
<div class="RightFram"> RightFram </div>
</div>
</div>
<div class="BottomFram"> BottomFram </div>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: