Bootstrap dropdowns menus appearing behind other elements - IE7

后端 未结 7 1771
南方客
南方客 2020-11-28 07:59

I\'m using Bootstrap 2.3.1 http://twitter.github.io/bootstrap/index.html

So I\'m using their \'dropdown-menu\' class to create some simple quick use dropdown menus,

相关标签:
7条回答
  • 2020-11-28 08:17

    If increasing the z-index of the parent element(as mentioned in other answers) did not work for you, it could be that one of the parent elements has "overflow: hidden;" Try removing it and see if it works.

    0 讨论(0)
  • 2020-11-28 08:24

    Its a stacking context issue!

    Even though you are using z-index on the dropdown, it is only relative to elements in the same stacking context. You need to add a z-index and a position to a parent element in order to get this to work. In this case I would recommend the header-top div

    0 讨论(0)
  • 2020-11-28 08:27

    Check out the "append-to vs. append-to-body vs. inline example" on the newest version of UI-Bootstrap lib.

    0 讨论(0)
  • 2020-11-28 08:36

    You can only use z-index on positioned elements (relative, fixed/absolute), so try adding:

    .header .header-nav ul#nav-account ul.dropdown-menu,
    .header .header-nav ul#nav-library ul.dropdown-menu {
        position: relative;
        z-index: 10000;
    }
    
    0 讨论(0)
  • 2020-11-28 08:36

    it's resolved by adding in menu CSS.

    position: relative;
    z-index: 10000;
    
    0 讨论(0)
  • 2020-11-28 08:40

    Just make overflow as inherit or Visible.

    it will solve the problem.

    overflow: visible !important;

    It worked for me awesomely

    0 讨论(0)
提交回复
热议问题