【问题标题】:Why is my CSS drop-down menu opening behind a DIV in IE7?为什么我的 CSS 下拉菜单在 IE7 中的 DIV 后面打开?
【发布时间】:2011-07-22 06:20:54
【问题描述】:

这个问题一直困扰着我。

这只发生在 IE7 中。我看到了一些类似的主题,并尝试了解决方案,但无法让它们发挥作用。

有什么想法吗?

http://signhit.com/

谢谢!!!

【问题讨论】:

    标签: css html internet-explorer-7 drop-down-menu


    【解决方案1】:

    见:div layering problems

    一般的想法是戳position: relative(通常删除它)和 z-index 在你的父元素上 下拉直到它被修复。

    我不是在开玩笑 position: relative

    您显然已经阅读了您遇到的问题并尝试了解决方案;我可以看到z-index 散布在各种元素上。

    还有一个步骤可以修复下拉菜单以在 IE7 中工作:

    • #content,删除position: relative

    【讨论】:

      【解决方案2】:

      试试这个:

      #nav_main ul
      {
        overflow: auto;
      }
      
      #nav_main ul li
      {
        z-index: 10;
      }
      

      另一个问题可能是 Flash 视频在做,但由于我不使用 Flash,所以帮不上什么忙。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-05-02
        • 2017-05-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-08-05
        相关资源
        最近更新 更多