js移动到指定位置animate和scrollTop结合使用

js移动到指定位置animate和scrollTop结合使用实例:

onclick="$('html,body').animate({scrollTop:$('.J_user_evaluate').offset().top-110},500)"
onclick="$('html,body').animate({scrollTop:$('.J_user_evaluate').offset().top},500)"
onclick="$('html,body').animate({scrollTop:'50px'},500)"
原文地址:https://www.cnblogs.com/huanghuali/p/9719904.html