Position.offsetParent - Prototype JavaScript 框架

Xunxin Prototype API

offsetParent
不推荐

offsetParent(element) -> HTMLElement

返回 element 的容器块(Containing Block)(译注:距离元素最近的 CSS position 属性为 relativeabsolute 的先代节点)节点, 如果不存在这样一个节点,则返回 body 元素。

已被 Element#getOffsetParent 方法取代。

返回的元素是 elementCSS containing block