相对位置元素在IE中的Z索引问题 [英] Z-index issue in IE for relative position element
问题描述
我有一个带有下拉菜单的页面,下面有图像块。
我的菜单和图像块都应用位置相对。下拉菜单的z-index值为9000,位置:绝对其中图像的z-index值为1000。
I am having a page with a drop down menu and images blocks beneath it. My menu and image blocks both applied position relative. Drop down of menu having z-index value of 9000, postion:absolute where as images are having z-index value of 1000.
当涉及到IE下拉菜单即使具有较大的z-index值,也会下降到保存图像的块。在firefox它工作完美。
When it comes to IE drop down menus are coming down to the blocks holding image, even though having greater value of z-index. On firefox it works perfect.
任何想法为什么这是发生和什么是这个的解决方案?
Any ideas why is this happening and what would be the solution for this?
如果我删除的位置:相对从图像它工作完美。
If I remove the position:relative from the images it works perfect. But that is needed for me.
请检查附加的图片,以了解问题的原因。
Check the attached image for a clear idea of the problem.
img src =https://i.stack.imgur.com/HmKDB.jpgalt =相对定位元素的IE问题>
p>
推荐答案
尝试将菜单设置为绝对:
Try setting up the menu to absolute:
http://brenelz.com/blog/squish-the-internet-explorer- z-index-bug /
这篇关于相对位置元素在IE中的Z索引问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!