gpt4 book ai didi

html - 阻止网页的 "overscrolling"

转载 作者:技术小花猫 更新时间:2023-10-29 11:29:17 25 4
gpt4 key购买 nike

在 Mac 版 Chrome 中,可以“过度滚动”页面(找不到更好的词),如下面的屏幕截图所示,以查看“后面的内容”,类似于 iPad 或 iPhone。

我注意到有些页面禁用了它,例如 gmail 和“​​新标签”页面。

如何禁用“过度滚动”?还有其他方法可以控制“过度滚动”吗?

enter image description here

最佳答案

公认的解决方案对我不起作用。我让它工作同时仍然能够滚动的唯一方法是:

html {
overflow: hidden;
height: 100%;
}

body {
height: 100%;
overflow: auto;
}

关于html - 阻止网页的 "overscrolling",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12046315/

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