//获取某个元素距离浏览器顶端的距离var hh=$("#news_desc").offset().top; //滚动条滚动的位置到顶部的位置$('html,body').animate({scrollTop:hh-130});