IE6 的 Z 索引错误.. 似乎无法解决这个问题
我正在这里处理这个华丽的标题: http://kayaskitchenbelmar.com/test/header.html
不幸的是,在 IE6 中,Print
和 View
按钮上的下拉菜单会折叠到新行上。
这是因为常见的 z-index 错误。我尝试通过使父级 div 具有较高的 z 索引和相对位置,使其子级具有较低的 z 索引和绝对位置来解决此问题,但这似乎不起作用。
也许我错过了一些明显的东西?
更新
嗯,我想我已经将其范围缩小为 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
。
有什么想法吗?
I am working on this gorgeous header here at : http://kayaskitchenbelmar.com/test/header.html
Unfortunately, in IE6, the drop downs that come off of the Print
and View
buttons collapse on to a new line.
This is because of the common z-index bug. I tried resolving this by making the parent div have a higher z-index and position relative with its child a lower z-index and position absolute, but that didn't seem to work.
Possibly I'm missing something obvious?
Update
Well I think I've narrowed it down to being an IE6 Relative Bug
These fixes were imperative :
#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;
}
But it seems that IE6 does not recognize relative
in this case. And I can't use 'absolute' because it will not allow the div to be relative to the parent ul
that's calling it.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我添加了这些,它是金色的:
And I added these and it was golden :