[英]Why does the menu appear in Chrome and FireFox, but not IE?
Why does the top category menu (Everything, Ballet Flats, Boots, etc) - div id="header-bar" - look great in FireFox and Chrome, but be hidden in IE unless you scroll down the page? 为什么顶部类别菜单(所有内容,芭蕾平底鞋,靴子等)-div id =“ header-bar”-在FireFox和Chrome中看起来很棒,但是在IE中隐藏,除非您向下滚动页面?
http://shoeporn.com http://shoeporn.com
Any help will be much appreciated :) 任何帮助都感激不尽 :)
It's positioned underneath (behind) the top bar. 它位于顶部栏的下方。 Either change the z-index
to something bigger than the top bar, or change the top
to position it below the top bar. 可以将z-index
更改为大于顶部栏的值,或者更改top
以将其定位在顶部栏的下方。
Its hidden in chrome as well. 它也隐藏在铬中。 The z-index is lower than the one of the background or something. z索引低于背景或其中之一。 Anyway add something like this to your header-nav: 无论如何,请在您的header-nav中添加以下内容:
z-index: 130;
I find setting position:absolute
on #header-bar
in this particular example to be poor practice. 我发现在此特定示例中,在#header-bar
上设置position:absolute
是不好的做法。 Consider changing that to 考虑将其更改为
#header-bar {
position: relative;
/*left: 0;
right: 0;
top: 44px; - remove these*/
}
This will maintain natural document flow; 这将保持自然的文件流; position:relative
allows for dropdown positioning and maintaining rendering context (compare with removing position property altogether and see the dropdown menus going "behind" the shoe tiles) position:relative
允许下拉菜单定位和维护渲染上下文(与完全删除position属性相比,并看到下拉菜单位于“鞋柜”的后面)
Rule of thumb: avoid absolute positioning if you can build without it. 经验法则:如果没有它,可以避免绝对定位。
For me its hidden in chrome too... anyway change this in css: 对我来说,它也隐藏在chrome中...无论如何在CSS中更改此设置:
#header-bar {
top: 84px;
z-index: 105;
}
remove z-index from #header-wrapper and add z-index:106 to #header-nav. 从#header-wrapper中删除z-index并将z-index:106添加到#header-nav中。
Hope it will help... 希望对您有帮助...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.