http://www.daixiaorui.com/read/92.html

滚动到顶部:

$('.scroll_top').click(function(){$('html,body').animate({scrollTop: '0px'}, 800);});

 

滚动到指定位置:

$('.scroll_a').click(function(){$('html,body').animate({scrollTop:$('.txtName').offset().top}, 800);});

相关文章:

  • 2021-09-08
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
相关资源
相似解决方案