[英]CSS scrollbar in div doesn't work in FF
The below HTML used to show a vertical scrollbar in FF3.x and IE. 下面的HTML用于在FF3.x和IE中显示垂直滚动条。 I have installed FF6.0.2 and the scrollbar doesn't show up anymore!! 我已经安装了FF6.0.2,滚动条不再显示了!
<html>
<body>
There should be a scroll bar on the page
<div style="background:red;position: relative; left: -1px; width: 19px; height: 300px; overflow: auto;">
<div style="background:green;width: 1px; height: 540px;"></div>
</div>
</body>
</html>
How can I get my scrollbars to appear with latest FF? 如何使滚动条与最新的FF一起显示? This still works in IE9. 这在IE9中仍然有效。 I think this is an issue with the combination of Windows7(Home Premium) and FF6.0.2. 我认为这与Windows7(Home Premium)和FF6.0.2的组合有关。 I tested this on Windows XP and FF6.0.2 it works fine. 我在Windows XP和FF6.0.2上进行了测试,效果很好。
Try setting your overflow to scroll: 尝试将溢出设置为滚动:
overflow:scroll;
Is this what you're looking for? 这是您要找的东西吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.