以下是我在项目中的一段js,是用来使页面自适应页面高度,不出现垂直滚动条,其中:“td_1”是已个单元格<td>,在ie7和ie6中完美运行,但在firefox中就不行,客户就爱用firefox,没办法啊!挣钱难啊,差了资料称是js不符合W3C标准,烦请高人指教!谢谢!
<script type="text/javascript">
function fullscreen(){
var iWidth = window.screen.availWidth;
var iHeight = window.screen.availHeight;
window.moveTo(0,0);
window.resizeTo(iWidth,iHeight); 
self["td_1"].height=document.body.clientHeight-74-33;
//self["Panel1"].height=document.body.clientHeight-74-33;
var panel1=document.getElementById( "Panel1"); 
panel1.style["height"]=(document.body.clientHeight-74-33-30)+"px";
}
</script>