function(){
	return{
		top:function(){return document.documentElement.scrollTop||document.body.scrollTop},
		width:function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},
		height:function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},
		total:function(d){
			var b=document.body, e=document.documentElement;
			return d?Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight)):
			Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))
		}
	}
}();

相关文章:

  • 2022-12-23
  • 2021-09-28
  • 2022-02-12
  • 2021-12-26
猜你喜欢
  • 2022-02-09
  • 2021-11-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2021-08-07
相关资源
相似解决方案