Javascript里的,offsetwidth,offsetheight,offsetTop.offsetLeft.
width,height,top,left,
scrollwidth,scrollheight,scrolltop,scrollleft,
clientwidth,clientheight,clienttop,clientleft指的是元素的那些地方的width,height,left,top
,能否详细说明??
http://www.2cto.com/kf/201409/333401.html
,scrollheight,scrolltop 这两个是Y轴的
,scrollleft,scrollwidth 这两个是x 轴的
client开头的是可见视窗宽度、高度。scroll开头的是滚动高度。宽度,如果没有滚动条和client开头的值一样
width/height/top/left是css属性了,没什么好说的。offset开头的看这2个
http://www.w3dev.cn/article/20120215/how-to-calculate-offsetWidth-offsetHeight.aspx
http://www.w3dev.cn/article/20120215/how-to-calculate-offsetTop-offsetLeft.aspx