window.screen.availHeight:屏幕可用工作区宽度window.screen.availHeight-41-79-120-60window.screen.availHeight-41-79-120-60屏幕可用工作区宽度减去41再减去79再减去120再减去60

解决方案 »

  1.   

    屏幕可用工作区宽度 ?是高度吧。
    window.screen.availHeight-41-79-120-60 为什么要写出这种格式呢?
    41 79 120和60有没有什么说法,比如41是减去屏幕上面的?
      

  2.   

    整段的js代码如下:
                    var tempheight = (window.screen.availHeight-41-79-120);  
                    var temp = "<table border='0' width='100%'><tr><td valign='top' width='100%' height='"+tempheight+"'>"+document.all.workaroundFrameGroup.innerHTML;  
                    temp += "<iframe name='workaroundFrame' id='workaroundFrame' width='100%' scrolling='auto' src='../queryCom/querylistPage.jspx'  frameborder='0'></iframe>";     
                    temp += "</td></tr></table>";  
                    document.all.workaroundFrameGroup.innerHTML = temp;        
                    document.getElementById("workaroundFrame").height=(window.screen.availHeight-41-79-120-60);