Sha*_*son 8 javascript internet-explorer
你怎么能在Internet Explorer中获得window.innerHeight.谢谢.
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)];
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
14682 次 |
最近记录: |