为什么我的CSS下拉菜单在IE7的DIV后面打开? [英] Why is my CSS drop-down menu opening behind a DIV in IE7?
问题描述
这个问题一直在困扰我。
This issue has been stumping me.
这只发生在IE7中。我看到一些类似的科目,并尝试解决方案,但无法让他们上班。
This only happens in IE7. I saw some similar subjects, and tried the solutions, but couldn't get them to work.
任何想法?
谢谢!!!
推荐答案
请参阅: div分层问题
一般的想法是戳
位置:
(通常删除它)和
相对
z-index
在
的父元素
The general idea is to poke
position: relative
(usually remove it) andz-index
on parent elements of your drop down until it's fixed.
我不是在开玩笑关于 position:relative
。
您显然已经阅读了您遇到的问题,并尝试了解决方案;我可以在各种元素上看到 z-index
。
You've obviously already read up on the problem you're experiencing and tried out the solutions; I can see z-index
scattered around on various elements.
还有一个步骤修复IE7中的下拉列表:
There's one more step to fix the dropdown to work in IE7:
- 从
#content
删除position:relative
。
- From
#content
, removeposition: relative
.
这篇关于为什么我的CSS下拉菜单在IE7的DIV后面打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!