JQ锚点,平滑滚动

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

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

posted @ 2017-12-22 17:53  azcqwezxc  阅读(250)  评论(0编辑  收藏  举报