简体   繁体   English

Firefox中的CSS固定定位问题

[英]CSS fixed positioning issue in Firefox

I have a modal "div" which appears as a popup over the main content window. 我有一个模式“ div”,它在主内容窗口上显示为弹出窗口。 Now this modal div uses fixed positioning (actually it is a thickbox div) 现在,此模式div使用固定位置(实际上是一个thickbox div)

The content for this modal div exceeds the available browser height. 此模式div的内容超过了可用的浏览器高度。 So the issue is that in Firefox, I am unable to access the content at the bottom of this modal div. 因此,问题在于在Firefox中,我无法访问此模式div底部的内容。 The scrollbar is displayed, but it does not scroll through the modal div. 将显示滚动条,但不会在模式div中滚动。 It scrolls through the main page. 它滚动浏览主页。 This does not happen in IE (only in Firefox) 在IE中不会发生这种情况(仅在Firefox中)

How do I fix the issue? 我该如何解决该问题?

Without seeing any code, my first guess would be to: 没有看到任何代码,我的第一个猜测是:

1) set overflow-y:auto; 1)设置溢出-y:自动; css property to the overlay div 叠加层div的css属性

2) set a height on the overlay div 2)在叠加层div上设置高度

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

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