jquery实现定位到页面具体位置,通过jQuery的animate动画方法定位。
 
例子,通过jQuery的animate动画方法定位。 
 
scrollOffset($("#qa").offset());
// jQuery 定位让body的scrollTop等于pos的top,实现滚动 
function scrollOffset(scroll_offset) { 
$("body,html").animate({ 
scrollTop: scroll_offset.top - 70 
}, 0); 
}