positionedOffset
不推荐

positionedOffset(element) -> [Number, Number]

element 的容器块(Containing Block)节点(译注:距离元素最近的 CSS position 属性为 relativeabsolute 的先代节点)为坐标原点,返回 element 的坐标偏移值(元素的容器块节点可通过 Position.offsetParent(element) 方法获取)。

已被 Element#positionedOffset 方法取代。

这个方法其实是累加元素及其所有父元素的 offsetLeftoffsetTop,直到其中一个元素的 CSS position 属性不等于 static译注:staticposition 的默认值)为止。

注意:所有返回值都仅有数字,单位为像素。