HTML精确定位:scrollLeft、scrollWidth、clientWidth和offsetWidth
scrollHeight :获取对象的滚动高度。
scrollLeft :设置或获取对象的左边距与窗口中当前显示内容的左边缘之间的距离
scrollTop :设置或获取对象顶部与窗口中显示的内容顶部之间的距离
scrollWidth :获取对象的滚动宽度
offsetHeight :获取对象相对于布局的相对坐标或父坐标
offsetParent :由属性指定的父坐标的高度
offsetLeft :布局或
offsetParent :属性指定的父坐标计算的左侧位置
offsetTop :布局或
offsetTop :由属性指定的父坐标的计算顶级位置
event.clientX :文档的水平坐标
event.clientY :文档的垂直坐标
event.offsetX :相对于容器的水平坐标
event.offsetY :容器的垂直坐标
document.documentelement.scroll top :垂直滚动的值
event.clientx document.documentelement.scroll top :在垂直于文档水平坐标的方向上滚动的量
这里是在javascript中构建迁移转换代码的常规属性
网页显示区域大: document.body.clientWidth;
网页可显示区域高: document.body.clientHeight;
网页可视区域宽度: document.body.offsetWidth (包括边框宽度);
网页可显示区域高: document.body.offsetHeight (包括边框宽度);
正文全文: document.body.scrollWidth;
正文全文高: document.body.scrollHeight;
网页被卷起的高度: document.body.scrollTop;
网页滚动的左: document.body.scrollLeft;
在网页项目组上: window.screenTop;
网页正文项目组左: window.screenLeft;
屏幕识别率高: window.screen.height;
屏幕识别率宽度: window.screen.width;
屏幕上可用工作区的高度: window.screen.availHeight;