Chrome(Windows)不会隐藏滚动条 [英] Chrome (windows) does not hide scrollbar
本文介绍了Chrome(Windows)不会隐藏滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个可滚动的div,它(在我的Mac在Chrome)隐藏滚动条,当我不滚动。然而,在Windows 8上,它不能在Chrome和Firefox中使用。
I have this scrollable div, which (on my Mac in Chrome) hides the scrollbar when I don't scroll. On windows 8 however, it doesn't work in Chrome and Firefox.
Ie不支持此功能,但我已使用以下CSS启用它: / p>
Ie doesn't support this too, but I've enabled it using the following CSS:
-ms-overflow-style: -ms-autohiding-scrollbar;
是否有任何方法为Chrome和Firefox启用此操作
Is there any way to enable this behaviour for Chrome and Firefox
以下是 jsfiddle
推荐答案
也许你可以使用类似的东西吗?
maybe you can use something like that?
body {
margin:0;
padding:0;
overflow-y: hidden;
}
body:hover {
overflow-y: scroll;
}
http://jsfiddle.net/4RSbp/165/
这篇关于Chrome(Windows)不会隐藏滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文