本文介绍了如果元素的高度小于32px,Firefox将隐藏垂直滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在FF3(3.0.14)我看到一个问题,如果垂直滚动条的高度小于32px,它就隐藏在一个元素上。在我的(非常简化的)例子中,滚动条不会出现在shouldScroll - 即使它的小孩比它大 - 直到我增加它的高度。有没有人知道这是一个已知的问题与特定版本的法郎,和/或如果有任何解决方法存在?

in FF3 (3.0.14) I'm seeing an issue where the vertical scrollbar is hidden on an element if its height is less than 32px. In my (much simplified) example below, the scrollbar doesn't appear on "shouldScroll" - even though its child is larger than it - until I increase its height. Does anyone know if this is a known issue with particular versions of FF, and/or if any workarounds exist?

干杯,
Alasdair

Cheers,Alasdair

PS抱歉的格式,如果有人可以告诉我如何最好的嵌入HTML在我的职位,将不胜感激

P.S. sorry about the formatting, if someone could tell me how best to embed html in my post it'd be much appreciated

<html>
<head>
</head>
<body>
<div id="shouldScroll" style="height: 20px; overflow: auto; background-color: red">
<div id="child" class="popupText" style="width: 100px; height: 100px;">Run Test</div>
</div>
</body>
</html>


推荐答案

已知的错误(,原子是对的滚动按钮不适合),我不知道任何解决方法。

Known bug (https://bugzilla.mozilla.org/show_bug.cgi?id=292284, Atoms is right it's done when the scroll buttons don't fit), and I'm not aware of any workarounds.

这篇关于如果元素的高度小于32px,Firefox将隐藏垂直滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 12:43