CSS
1、offsetTop、offsetLeft與scrollTop、scrollLeft
區別在於有沒有滾動條,有滾動條用後者,沒有滾動條用前者
2、offsetWidth、offsetHeight與scrollWidth、scrollHeight
offsetHeight = padding +border + height。(無margin)
clientHeight = padding +height - scrollbar.width。
scrollHeight = padding + 內容margin box的高度(有margin)