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

//左侧导航栏滑动
$(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;
    })

 

posted @ 2015-11-09 13:47  名字不能缺  阅读(293)  评论(0编辑  收藏  举报