自动滚动到页面的某个区域

jQuery.fn.autoscroll=function(selector){
     $('html body').animate({scrollTop:$(selector).offset().top},500);  
}

 

posted on 2016-03-08 14:39  taoshengyijiuai  阅读(194)  评论(0编辑  收藏  举报