摘要: function pos(elem) { var x = elem.offsetLeft, y = elem.offsetTop; while (elem = elem.offsetParent) { x += elem.offsetLeft; y += elem.offsetTop; } return [x, y];} 阅读全文
posted @ 2013-11-25 12:05 momofan 阅读(1321) 评论(0) 推荐(0) 编辑