offsetParent的兼容问题!

IE6 IE7 IE8(Q) 在某些情况下 DOM 元素的 offsetTop、offsetLeft 的返回值参照元素以及 offsetParent
为距离其最近的触发了 hasLayout 的祖先级元素

http://w3help.org/zh-cn/causes/SD9018#impacted_browsers

posted @ 2013-03-10 10:20  evilfox  阅读(349)  评论(0编辑  收藏  举报