经典页面布局,任何分辨率下,全屏显示
2012-03-31 12:51
393 查看
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>经典页面布局,任何分辨率下,全屏显示</title> <style type="text/css"> *{ list-style:none; margin:0; padding:0;} html{ height:100%; overflow:hidden;} body{ background:red; height:100%;} .top,.left,.right,.bottom{ background:#000; position:absolute;} .top{ height:70px; left:10px; top:10px; right:10px;} .left{ width:300px; left:10px; top:90px; bottom:90px;} .right{ left:320px; right:10px; top:90px; bottom:90px;} .bottom{height:70px; left:10px; right:10px; bottom:10px;} </style> <!--[if IE 6]> <style type="text/css"> html{ padding:90px 10px;} .top,.left,.right,.bottom{ position:relative; top:0; right:0; bottom:0; left:0;} .top{margin-top:-80px;} .left{height:100%;margin-top:10px; float:left;} .right{height:100%; margin:10px 0 0 320px;} .bottom{margin-top:10px;} </style> <![endif]--> </head> <body> <div class="top"></div> <div class="left"></div> <div class="right"></div> <div class="bottom"></div> </body>> </html>
相关文章推荐
- 经典页面布局,任何分辨率下,全屏显示
- 经典页面布局,任何分辨率下,全屏显示
- 使您的页面在任何分辨率下保持全屏显示
- 使您的页面在任何分辨率下保持全屏显示
- Banner图片都是全屏宽度在不同分辨率下都是显示图片的中间部分
- js模拟F11使页面全屏显示
- 在 Xamarin.Forms 实现页面全屏显示
- ext4js 主页面布局,动态分配菜单,并点击url 显示到内容面板中
- asp.net-css页面布局的应用-经典盒子模型
- Android程序在各个分辨率设备上全屏显示
- css判断不同分辨率显示不同宽度布局实现自适应宽度
- 全屏显示布局随机图片的显示
- MVC布局页面嵌入Iframe子页面,显示不完整
- Selenium2学习-024-WebUI自动化实战实例-022-网站不同分辨率下页面样式展示兼容性问题解决方案 -- 设置浏览器显示区域大小(无人值守,节约测试成本的福音,BOSS 最爱)
- Web页面根据不同的分辨率显示不同的图片
- android应用程序布局时选择皮肤和设置横屏、全屏显示的方法
- Webview--如何让加载进来的页面自适应手机屏幕分辨率居中显示
- 在地图页面,自动布局控件开始是隐藏或在屏幕外需要正常显示时再为正常的显示状态的,需要在显示之前加入
- 根据显示器分辨率调整页面显示的Javascript脚本
- Android中ScrollView布局初始化显示的时候使页面置顶