Superfish下拉菜单,如何在ie6和ie7中修复z-index? [英] Superfish drop down menu, how to fix z-index in ie6 and ie7?

查看:106
本文介绍了Superfish下拉菜单,如何在ie6和ie7中修复z-index?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 superfish 插件用于jquery此处: clicky

在所有现代浏览器FF,Safari,Chrome,IE8中都可以正常工作

it works fine in all modern browsers FF,Safari, Chrome, IE8

但是似乎z-index在ie6和7中不起作用

but it seems like the z-index is not working in ie6 and 7

您可以看到菜单正在显示,但被其下面的元素所切断.

you can see the menu is appearing, but being cut off by the elements below it.

我尝试过在所有我能想到的地方都添加一个z-index,但似乎没有任何解决办法.

I have tried adding a z-index everywhere I can think of but nothing seems to fix this.

我该如何解决?

谢谢!

推荐答案

我现在没有IE6,所以我可以为您测试.

I don't have IE6 handy right now so I can test for you.

您可以尝试向要应用z-index的元素添加"position:relative".

You could try adding "position:relative" to the elements you are applying z-index to.

这篇关于Superfish下拉菜单,如何在ie6和ie7中修复z-index?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆