function mScroll(id){
        $("html,body").stop(true);
        $("html,body").animate({scrollTop: $("#"+id).offset().top}, 500);
}

 

相关文章: