博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
计算页面尺寸收集
阅读量:6904 次
发布时间:2019-06-27

本文共 594 字,大约阅读时间需要 1 分钟。

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))		}	}}();

转载地址:http://xzldl.baihongyu.com/

你可能感兴趣的文章
Python面向对象
查看>>
CentOS5 安装vsFtpd软件及配置
查看>>
设计师应该关注的科技发展方向(二)
查看>>
redis python监控
查看>>
PowerDesigner连接MySQL数据库
查看>>
界面控件Essential Studio for ASP.NET Web Forms 2017 v3发布丨附下载
查看>>
Java web部署目录结构和web.xml作用
查看>>
Python中list的遍历
查看>>
Linux系统下常见性能分析工具的使用
查看>>
事件驱动模型
查看>>
多机调度问题-贪心算法
查看>>
我的友情链接
查看>>
强制弹出页面代码(以及自动最小化功能)
查看>>
VRRP单备份配置
查看>>
好程序员学习笔记:函数
查看>>
如何打造工业物联网帝国?
查看>>
超人学院Hadoop大数据资源分享
查看>>
我的友情链接
查看>>
图解自定义安装CentOS
查看>>
Xposed hook(android)
查看>>