Tag
带有“锚点”标签的全部文章。
共 1 篇
由于顶部菜单存在 position:fixed ,而引起的的锚点位置偏移。 在css中,给锚点添加偏移量,直接就可以了 css html { scroll-padding-top: 200px; scroll-behavior: smooth; } 就是这么简单的办法,我不知道为什么百度搜不出来 其...