阅读背景:

获取浏览器窗口的高度并赋值给div

来源:互联网 
if (window.innerHeight){
            winHeight = window.innerHeight;
        }else if ((document.body) && (document.body.clientHeight)){
            winHeight = document.body.clientHeight-50+"px";
        }
        document.getElementById("listiframe").style.height=winHeight"px";
        document.getElementById("deptTree").style.height=winHeight+"px";if (window.innerHeight){
            winHeight 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: