JQ锚点,平滑滚动

$("html,body").animate({scrollTop:$("#ct").offset().top},500)

滚动至ID为ct元素位置,500毫秒

原文地址:https://www.cnblogs.com/haohaosky/p/8087142.html