gpt4 book ai didi

css - 单击 anchor 链接后无法滚动到顶部

转载 作者:太空宇宙 更新时间:2023-11-03 19:31:45 24 4
gpt4 key购买 nike

单击此页面上的 anchor 后: http://somaticstudies.com/resources

我无法滚动回页面顶部,并且丢失了仅出现在页面顶部的侧边栏内容。我看到了这个:

Anchor link cutting off the page based on height of absolute positioned element

我尝试删除 overflow:hidden(这会弄乱我的布局),但没有帮助。我也没有 height:0 任何地方。我不确定是什么原因造成的?

谢谢。

最佳答案

尝试删除 #content 上的 margin-bottom:-9999px

关于css - 单击 anchor 链接后无法滚动到顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27253092/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com