jquery得到当前页面高度和宽度的两个函数_jquery
                        
                            时间:2021-07-01 10:21:17
                            帮助过:7人阅读
							                        
                     
                    
                     代码如下:
//======需引用jquery框架======// 
//返回当前页面高度 
function pageHeight(){ 
if($.browser.msie){ 
return document.compatMode == "CSS1Compat"? document.documentElement.clientHeight : 
document.body.clientHeight; 
}else{ 
return self.innerHeight; 
} 
}; 
//返回当前页面宽度 
function pageWidth(){ 
if($.browser.msie){ 
return document.compatMode == "CSS1Compat"? document.documentElement.clientWidth : 
document.body.clientWidth; 
}else{ 
return self.innerWidth; 
} 
};