导航平滑滚动到页面某个锚点

//左侧导航栏滑动
$(function () {
    $('.intro_list li a').click(function () {
        var oIndex=$(this).parent().index()
        $('html,body').animate({
            scrollTop:$('.foreman_show ').eq(oIndex).offset().top
        }, 800);
        return false;
    })

 

相关文章:

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