1、绝对定位 jquery获取元素的top值: $('#aa').offset().top; 2、相对定位 jquery获取元素的top值: $('#aa').position().top; 相关文章: