【发布时间】:2012-08-20 18:07:01
【问题描述】:
我有一个在iframe 中加载的网络应用程序。我需要显示一个覆盖 div 来覆盖整个页面。
问题是覆盖目前只显示在iframe区域,并没有覆盖整个页面,
(我们的应用程序(一个子应用程序)是在iframe 中加载的一组应用程序的一部分)
【问题讨论】:
-
#overlay {position: fixed; height: 100%; width: 100%; background: black; opacity: 0.5;} -
要覆盖整个窗口,您必须在原始窗口 dom 而不是 iframe 中创建覆盖 div。
-
@ThomasStachl 是的,它是正确的,我们需要在原始窗口 DOM 中进行,非常感谢