IE Z

编程入门 行业动态 更新时间:2024-10-24 16:30:13
本文介绍了IE Z-Index问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有经典的问题,我的标题导航栏是在我的iframe在身体,但我的尝试解决这与z索引只是让我更困惑,仍然有相同的问题:/ 这是我的设置:

I am having the classic problem, my header navigation bar is going under my iframe in the body, but my attempt at solving this with z-indexes has just left me more confused and still with the same problem :/ Here is my setup:

<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="www.flytheflagtexas/athens/magazine/latest/index.html" ></iframe> </div> <![endif]--> ....code....

为什么不z-index: 2 iframe出现在什么东西下? 这是页面: www.flytheflagtexas/athens/latest可以自由地浏览代码

Why wont the z-index:-2 iframe appear under anything? Here is the page: www.flytheflagtexas/athens/latest feel free to go through the code

推荐答案

z-index只有在您给出了用于布置组件的位置时才起作用。否则它只是不工作。这意味着z-index适用于:定位的元素

z-index works only if you have given used positions for laying out the components. Otherwise it just doesn't work. This means that z-index Applies to: positioned elements

更多推荐

IE Z

本文发布于:2023-06-11 17:26:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/639734.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!