Internet Explorer innerHeight(Internet Explorer innerHeight)
你怎么能在Internet Explorer中获得window.innerHeight。 谢谢。
How can you get the window.innerHeight in internet explorer. Thanks.
最满意答案
window.getWinSize= function(){ if(window.innerWidth!= undefined){ return [window.innerWidth, window.innerHeight]; } else{ var B= document.body, D= document.documentElement; return [Math.max(D.clientWidth, B.clientWidth), Math.max(D.clientHeight, B.clientHeight)]; } } window.getWinSize= function(){ if(window.innerWidth!= undefined){ return [window.innerWidth, window.innerHeight]; } else{ var B= document.body, D= document.documentElement; return [Math.max(D.clientWidth, B.clientWidth), Math.max(D.clientHeight, B.clientHeight)]; } }更多推荐
发布评论