/**
*调整滚屏出现的弹出div位置差别的现象,这个只在IE下才有,在ff下不用调整
*/
function getScollTop(){
var eleHeight;
if(document.documentElement){
eleHeight = document.documentElement.scrollHeight-document.documentElement.clientHeight ;
}else{
eleHeight = document.body.scrollHeight-document.documentElement.clientHeight ;
}
return eleHeight>0?eleHeight:0;
}
scrollHeight在IE和FF下的区别
最新推荐文章于 2018-11-26 12:52:26 发布