$('h2#answers-title').offset().top h2#answers-title元素相对于document的垂直位置$(document).scrollTop() 整个文档被上卷的高度2者差就是$('h2#answers-title')相对于当前浏览器视图窗口的垂直位置
$('h2#answers-title').offset().top-$(document).scrollTop();$('h2#answers-title').offset().top h2#answers-title元素相对于document的垂直位置$(document).scrollTop() 整个文档被上卷的高度2者差就是$('h2#answers-title')相对于当前浏览器视图窗口的垂直位置
$('h2#answers-title').offset().top-$(document).scrollTop();
2316
807
650

被折叠的 条评论
为什么被折叠?