在Firefox中取消停用的滚动条 [英] Get a deactivated scrollbar in Firefox
问题描述
我有一个Javascript标签对话框,其页面有不同的高度。其中一些比浏览器窗口高。
I have a Javascript tabbed dialog whose pages have different heights. Some of them are taller than the browser window.
在Internet Explorer中,右侧始终有一个滚动条。当不需要时,它是灰色的。页面尺寸保持不变,没有问题。
In Internet Explorer, there is always a scrollbar to the right. When it is not needed, it is greyed out. The page dimensions stay the same and there is no problem.
在Firefox中,当不需要不断更改页面尺寸时,滚动条完全隐藏,因此整个标签对话框的宽度(它有一个相对宽度)。这是非常讨厌。
In Firefox, the Scrollbar is hidden completely when not needed constantly changing the page's dimensions on each page change and thus the width of the whole tabbed dialog (it has a relative width). This is very annoying.
有没有办法把停用的滚动条回到Firefox或任何其他方式来解决这个问题?
Is there any way to bring the deactivated scrollbar "back" to Firefox, or any other way to work around this?
推荐答案
将以下行添加到您的 userContent.css
:
html { overflow: -moz-scrollbars-vertical !important; }
这篇关于在Firefox中取消停用的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!