简体   繁体   English

不出现 div 滚动条 Firefox

[英]Doesn't appear div scrollbar Firefox

this example code work in Google Chrome and in IE, but doesn't work in Firefox.此示例代码在 Google Chrome 和 IE 中有效,但在 Firefox 中无效。

The scrollbar correctly appear in Chrome and IE because the div divScrollID2 is large 1200px and the container, div divScroll is large just 700px .滚动条正确显示在 Chrome 和 IE 中,因为 div divScrollID21200px并且容器 div divScroll大只有700px

<html>
  <body>
    <div id="divScroll" style=" background:green; overflow-y:hidden;width:700px;max-width:700px;min-width:700px;overflow-x:auto;height:14px;min-height:14px;max-height:14px;">
      <div style="background:pink; width:1200px;min-width:1200px;max-width:1200px;height:14px;min-height:14px;max-height:14px;" id="divScrollID2">&nbsp;</div>
    </div>   
  </body>
</html>

Can anyone explain to me why in Firefox does not appear the scroll bar in divScrollID2 and how can I fix it?谁能向我解释为什么在 Firefox 中没有出现 divScrollID2 中的滚动条,我该如何解决?

Thanks,谢谢,

Tommaso托马索

Your height restrictions are causing the problem.您的身高限制导致了问题。 There's no room for a scroll bar.没有滚动条的空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM