【问题标题】:Superfish dropdown menu not working in IE7Superfish 下拉菜单在 IE7 中不起作用
【发布时间】:2011-04-01 22:28:47
【问题描述】:

我在我的网站上安装了 superfish 下拉菜单,我也在其他网站上使用它。 Anywho,我认为一切正常,因为它们在 Safari、FF 和 IE8 中运行良好。但可惜的是,在 IE7(可能还有 IE6,但我不在乎!)它们没有出现。

我阅读了有关 IE7 的 Z-index 问题,但没有一个解决方案有效。

有人知道怎么解决吗?这是网址:http://www.recordgone.com/about-the-firm.htm

谢谢!!!

【问题讨论】:

    标签: jquery css superfish drop-down-menu


    【解决方案1】:

    感谢另一位 Stack overflow question 的 Emily 为我指明了正确的方向。

    • IETester 是检查各种 IE 版本的有用工具
    • superfish page fix 修复了 IE8 的问题 - 实际上来自 this comment

      您应该在 position:relative 元素上设置 z-index(而不是在其中的绝对元素上,如果有的话)。

      还要注意,在为定位元素设置 z-index 时,将为子元素创建一个新的 z-order 堆栈。

    • 对于 IE6/7,我发现我的 Suckerfish 版本必须将 z-index 放在 .sf-menu li 而不是 .sf-menu li li

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多