offset client scroll

网页申明类型为严格型
offsetLeft = margin-left;
offsetTop  = margin-top;
offsetWidth = width +padding-left+border-left+padding-right+border-right;
offsetHeight = height + padding-top+border-top+padding-bottom+border-bottom;

clientLeft = border;
clientTop  = border;
clientHeight = width + padding-top + padding-bottom;
clientWidth  = height + padding-left + padding-right;

scrollLeft = 向左卷起的部分;
scrollTop  = 向上卷起的部分
scrollHeight = 实际的高度
如果是FF,则高度至少要比clientHeight大
但是Opear刚是以height为主
scrollWidth  = 实际高度 + padding-left + padding-right+2*border;(以宽的为主),如果DIV超过了父层的宽度则要加上2*border(这里IE的解释)
如果是FF,刚宽的宽度+2*border

IE6.0、FF1.06+:
clientWidth = width + padding
clientHeight = height + padding
offsetWidth = width + padding + border
offsetHeight = height + padding + border

IE5.0/5.5:
clientWidth = width - border
clientHeight = height - border
offsetWidth = width
offsetHeight = height

你可能感兴趣的:(IE)