最佳答案
我已经修复了它并把更新的 fiddle here
刚从动画的 scrollTop 属性中减去 150。
$('html, body').animate({
scrollTop: $(target).offset().top - 150
}, 1000);
关于html - 在页面导航被导航栏隐藏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24991879/