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

//左侧导航栏滑动
$(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;
    })
原文地址:https://www.cnblogs.com/nifengs/p/4949742.html