【发布时间】:2010-12-28 09:33:29
【问题描述】:
我正在处理这个华丽的标题:http://kayaskitchenbelmar.com/test/header.html
不幸的是,在 IE6 中,来自Print 和 View 按钮的下拉菜单会折叠到新的一行。
这是因为常见的 z-index 错误。我尝试通过使父 div 具有更高的 z-index 和相对于其子级的位置较低的 z-index 和绝对位置来解决此问题,但这似乎不起作用。
可能我遗漏了一些明显的东西?
更新
好吧,我想我已经把它缩小为一个 IE6 相关错误
这些修复是必要的:
#nav-options{
margin-left: 15px;
padding-top: 20px;
width: 232px;
height: 41px;
position: relative;
z-index: 3000;
}
.popup-nav{
clear: both;
display: none;
float: none;
position: relative;
right: 318px;
text-align: right;
top: 15px;
z-index: 1000;
}
但在这种情况下,IE6 似乎无法识别relative。而且我不能使用“绝对”,因为它不允许 div 相对于调用它的父 ul。
有什么想法吗?
【问题讨论】:
-
我认为z-index是继承和添加的,如果你把它设为负数怎么办? #TalkingWithoutKnowing
标签: html css internet-explorer-6 z-index