如何消失浏览器的滚动条 [英] How to disappear the browser's scroll bar
本文介绍了如何消失浏览器的滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过HTML或Javascript隐藏浏览器的水平和垂直滚动条?
我有一个列表,并为此我做了我自己的股利div div scroller,我想隐藏浏览器的滚动条
在此先感谢
解决方案
您可以将 overflow:hidden
应用于 html
和/或<$ CSS中的c $ c> body ,但是当然,你必须小心,这样你的< div>
不会扩展过去
html,body
{
overflow:hidden;
}
Is it possible to hide the browser's horizontal and vertical scroll through HTML or Javascript? I have a listing and for that I have made my own div to div scroller and I want to hide the browser's scroll bars Thanks in advance
解决方案
You can apply overflow: hidden
to html
and/or body
in CSS but then, of course, you have to be careful so that your <div>
doesn't expand past the browser window.
Example:
html, body
{
overflow: hidden;
}
这篇关于如何消失浏览器的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文