参考链接: http://www.ruanyifeng.com/blog/2009/09/find_element_s_position_using_javascript.html