1 $(document).ready(function() {
 2         $("a.topLink").click(function() {
 3                 $("html, body").animate({
 4                         scrollTop: $($(this).attr("href")).offset().top + "px"
 5                 }, {
 6                         duration: 500,
 7                         easing: "swing"
 8                 });
 9                 return false;
10         });
11 });

 

相关文章:

  • 2022-12-23
  • 2021-10-03
  • 2021-11-27
  • 2021-08-06
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-11-10
相关资源
相似解决方案