body(div).offsetWidth / body(div).offsetHeight
同client相关值,只是加上border宽度,如果有滚动条再加上滚动条宽度。
body(div).offsetLeft / body(div).offsetTop




不知道IE7下offsetTop:22和其offsetLeft:37为何不相等?再探究...
同client相关值,只是加上border宽度,如果有滚动条再加上滚动条宽度。
不知道IE7下offsetTop:22和其offsetLeft:37为何不相等?再探究...
本文标题:client、offset、scroll 理理三种宽高之offs
本文链接:https://www.haomeiwen.com/subject/wcruvttx.html
网友评论