【发布时间】:2012-10-21 03:00:40
【问题描述】:
我遇到了经典问题,我的标题导航栏位于正文中的 iframe 下方,但我尝试使用 z-indexes 解决这个问题让我更加困惑,并且仍然遇到同样的问题:/ 这是我的设置:
<header style="z-index:2;">
....code....
<nav align="center" style="z-index:2;">
....nav....
</nav>
</header>
<section id="content" style="z-index:-1;">
<div class="block">
<div class="main">
<!--[if IE]>
<div style="z-index:-2;">
<iframe width="900" height="900" style="position:relative; z-index:-2;" src="http://www.flytheflagtexas.com/athens/magazine/latest/index.html" ></iframe>
</div>
<![endif]-->
....code....
为什么 z-index:-2 iframe 不会出现在任何东西下? 这是页面:http://www.flytheflagtexas.com/athens/latest随意浏览代码
【问题讨论】:
-
z-indexes 仅与容器相关。您的
-1与2位于不同的块中 -
那么如何让标题块出现在节块之上?
标签: html css internet-explorer iframe