以下函数在FF里不能正确获取元素的绝对位置,怎么办啊。。。function getPoint(source) { var pt = { x: 0, y: 0 }; do { pt.x += source.offsetLeft; pt.y += source.offsetTop; source = source.offsetParent; } while (source); return pt;}