防止“过度滚动"网页的 [英] Prevent "overscrolling" of web page
本文介绍了防止“过度滚动"网页的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Mac 版 Chrome 中,可以滚动"一个页面(因为没有更好的词),如下面的屏幕截图所示,以查看后面是什么",类似于 iPad 或 iPhone.
In Chrome for Mac, one can "overscroll" a page (for lack of a better word), as shown in the screenshot below, to see "what's behind", similar to the iPad or iPhone.
我注意到有些页面禁用了它,例如 gmail 和新标签"页面.
I've noticed that some pages have it disabled, like gmail and the "new tab" page.
如何禁用过度滚动"?还有其他方法可以控制过度滚动"吗?
How can I disable "overscrolling"? Are there other ways in which I can control "overscrolling"?
推荐答案
接受的解决方案对我不起作用.我让它在仍然能够滚动的同时工作的唯一方法是:
The accepted solution was not working for me. The only way I got it working while still being able to scroll is:
html {
overflow: hidden;
height: 100%;
}
body {
height: 100%;
overflow: auto;
}
这篇关于防止“过度滚动"网页的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文