火狐浏览器获取浏览器高度和谷歌不同 先要判断是否是火狐浏览器
var bodyHeight;
if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
bodyHeight = document.documentElement.scrollHeight;
}else{
bodyHeight = document.body.scrollHeight;
}
429

被折叠的 条评论
为什么被折叠?



