复制代码 代码如下:
function getTotalHeight(){
if($.browser.msie){
return document.compatMode == "CSS1Compat"? document.documentElement.clientHeight : document.body.clientHeight;
}
else {
return self.innerHeight;
}
}
function getTotalWidth (){
if($.browser.msie){
return document.compatMode == "CSS1Compat"? document.documentElement.clientWidth : document.body.clientWidth;
}
else{
return self.innerWidth;
}
}
var do_height = getTotalHeight();
var do_width = getTotalWidth();
alert("do_height=="+do_height+"ndo_width=="+do_width);
最后
以上就是自然发箍最近收集整理的关于基于jquery的获取浏览器窗口大小的代码的全部内容,更多相关基于jquery内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复