in quirk, take full screen with table is convenience, but it's not work in FF.
and I wanta try to stand my code close w3c stand more: with standared mode.
so, I use div + css, with position fixed implement in FF first.
and hack css for IE6.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>full screen layout with standard mode</title>
<style>
html, body {
/*for IE6, relate to body real time size, FF absolute div is relate to window inner size defaultly*/
width: 100%;
height: 100%;
overflow: hidden;
}
body div {
border: 1px solid #ccc;
position: fixed;
overflow: auto;
/*ie6 css hack*/
_position: absolute;
}
.top {
top: 5px;
height: 50px;
left: 5px;
right: 5px;
/*ie6 css hack*/
_width: expression(document.body.offsetWidth-10+"px");
}
.footer {
bottom: 5px;
height: 30px;
left: 5px;
right: 5px;
/*ie6 css hack*/
_width: expression(document.body.offsetWidth-10+"px");
}
.left {
top: 60px;
bottom: 40px;
left: 5px;
width: 190px;
/*ie6 css hack*/
_height: expression(document.body.offsetHeight-110+"px");
}
.main {
top: 60px;
bottom: 40px;
left: 200px;
right: 5px;
/*ie6 css hack*/
_width: expression(document.body.offsetWidth-205+"px");
_height: expression(document.body.offsetHeight-110+"px");
}
</style>
<script>
var $=function(id){
return document.getElementById(id);
}
var isIE=navigator.appName.match(/explorer/i)?true:false;
window.onload=function(){
var txt=document.compatMode;
$("lblBrowser").innerHTML="browser: "+navigator.appName+", "+navigator.appVersion;
$("lblIsIE").innerHTML="browser: "+navigator.appName+", is IE: "+isIE;
$("lblMode").innerHTML=txt;
getTree();
}
function getTree(){
var txt="<ul>";
var len=50;
for(var i=1;i<=len;i++){
txt=txt.concat("<li value='"+i+"'>"+i+"</li>");
}
txt=txt.concat("</ul>");
$("divLeft").innerHTML=txt;
}
function getMain(){
}
</script>
</head>
<body>
<div class="top">
<label id="lblBrowser"></label>
</div>
<div class="left" id="divLeft">
</div>
<div class="main" id="divMain">
</div>
<div class="footer">
<label id="lblIsIE"></label>
<label id="lblMode"></label>
</div>
</body>
</html>
note: chrome support both:
1.calc div 100% restrict with td rest height in quirk mode
2.position fixed in standared mode
result:
- 大小: 83 KB
分享到:
相关推荐
"Full Screen Slider"是一种能够让整个屏幕内容随鼠标滚动而平滑过渡的设计元素。本文将深入探讨实现这种效果的三种主要方法。 1. CSS3与JavaScript结合 CSS3提供了许多强大的动画和过渡属性,可以用于创建全屏滑块...
Full Screen Editor 全屏工具
Mastering the C++17 STL Make full use of the standard library components in C++17 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
标题"VC_code_to_make_dialog_full_screen.rar_full screen_make"和描述"VC++ code to make dialog full screen"正是指向这个目标,即如何在VC++中编写代码来实现对话框的全屏显示。本文将详细讲解如何通过VC++实现...
A simple Google Chrome extension that takes a screen capture of a full web page. Every extension I tried couldn’t do this on Chrome 22 on Mac OSX Lion. So, I built this one to reliably do it. (Not ...
Hands-On Full Stack Development with Go - Mina Andrawos(2019),Go全栈开发,epub格式,欢迎下载
标题“dot net full screen demo”和描述“full screen application windows demo”揭示了这是一个关于使用.NET框架(可能是.NET Framework 2.0,因为提到了VS2005)创建全屏Windows应用程序的示例项目。这个项目的...
Full Page Screen Capture顾名思义就是全页屏幕截屏的意思,可以完整可靠地捕获当前页面的屏幕,当网页内容不在屏幕内时插件会自动拖动滚动条进行截图。屏幕截图可以保存为图片或者PDF,甚至自需将其拖动即可保存到...
Hands-On Full-Stack Development with Swift 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
this is incompatible with sql-mode=only-full-group-by
2016_Design Method of Adaptive Full Order Observer With or Without Estimated Flux Error in Speed Estimation Algorithm 王教授的论文; 2016_Design Method of Adaptive Full Order Observer With or ...
Create a RESTful web service with Spring Boot Use React for frontend programming Learn to create unit tests using JUnit Discover techniques to secure the backend using Spring Security Employ Material-...
Mastering the C++17 STL Make full use of the standard library components in C++17 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Full Page Screen Capture是一款适合chrome浏览器使用的全屏截图插件,我们知道有时候在截取一些网页的时候由于屏幕限制无法截取全图,使用这款插件无论有没有滚动条都可以截取全屏图片了,需要此款工具的朋友们欢迎...
Sigrity-Clarity 3D Layout Full-Wave IC Tutorial.rar Clarity 3D Layout全波IC模式是Clarity 3D布局全波提取模式的高分辨率布局数据版本。 本节解释了Clarity 3D Layout全波IC工作流程的主要特征和优势,并介绍了...
"view-full-Screen.rar_full"这个标题暗示我们这里涉及到的是关于视图窗口全屏显示的示例代码或者教程。"full"标签进一步强调了这个主题与全屏模式相关。接下来,我们将深入探讨视图全屏显示的相关知识点。 1. **...
Download Turbo C++ for Windows 7, 8, 8.1 and Windows 10 with full/window screen mode and many more extra feature. How to install Turbo C++ Step 1 Download Turbo C++ 3.2 from here Step 2 If any ...