[英]Superfish IE7 z-index bug with Nivo slider or Photospace in wordpress
I have a website with a superfish menu and I have two different plugins for slideshows, nivo slider in the main page: http://hermandaddelcalvario.org/wordpress/ and photospace in the gallery page: http://hermandaddelcalvario.org/wordpress/imagenes-3/ 我有一个快鱼菜单一个网站和我有幻灯片两种不同的插件,NIVO滑块主页: http://hermandaddelcalvario.org/wordpress/和照片空间在画廊页: http://hermandaddelcalvario.org/wordpress / imagenes-3 /
The problem comes with IE7, the dropdown falls behind the images on both pages. IE7带来了问题,下拉列表位于两个页面上的图像后面。 I searched a lot and everyone suggests that I do this:
我搜索了很多,每个人都建议我这样做:
/*gallery container*/
#content{
position:relative;
z-index: 1;
}
/*superfish container*/
#navwrap{
position:relative;
z-index: 2;
}
I did so but to no avail, is there something else I missed? 我这样做了,但无济于事,还有其他我想念的东西吗?
The issue occurs in both IE 6 and 7 due to the way they create a stacking order. 由于IE 6和IE 7创建堆叠顺序的方式,均会出现此问题。 More details can be found here: http://brenelz.com/blog/squish-the-internet-explorer-z-index-bug/
可以在这里找到更多详细信息: http : //brenelz.com/blog/squish-the-internet-explorer-z-index-bug/
In short - within your conditional IE stylesheets you will need to give your menus parent a z-index of higher value than your slideshow. 简而言之-在您的条件IE样式表中,您将需要使菜单的父级Z索引的值高于幻灯片显示的Z索引。
Ok this is a bit lame, 3 secs after I asked the question I found my answer here: Jquery Superfish problem in IE7 好的,这有点la脚,在我问了问题3秒钟后,我在这里找到了答案: IE7中的Jquery Superfish问题
Using that script now it works but I still want to know what's wrong with the css here, I'd go for a css solution before this but I wanted to state that would solve the issue. 现在使用该脚本可以正常工作,但是我仍然想知道这里的CSS有什么问题,在此之前我会寻求CSS解决方案,但我想说明一下可以解决的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.