$('html,body').animate({scrollTop:$('.thrid').offset().top-70}, 500);
.thrid:选择的组件
top-70:距离网页窗口顶部70px
500:需要0.5秒
整个意思就是:将class=“thrid”的组件在0.5秒内定位到具体窗口顶部70px的位置
$('html,body').animate({scrollTop:$('.thrid').offset().top-70}, 500);
.thrid:选择的组件
top-70:距离网页窗口顶部70px
500:需要0.5秒
整个意思就是:将class=“thrid”的组件在0.5秒内定位到具体窗口顶部70px的位置