z-index issue with twitter bootstrap dropdown menu

后端 未结 12 2270
耶瑟儿~
耶瑟儿~ 2020-12-05 09:24

I\'m using twitter bootstrap dropdown menu in a fixed navbar at the top of my page.

It all works fine but am having issues with the drop down menu items showing behi

相关标签:
12条回答
  • 2020-12-05 09:43

    Solved by removing the -webkit-transform from the navbar:

    -webkit-transform: translate3d(0, 0, 0);

    pillaged from https://stackoverflow.com/a/12653766/391925

    0 讨论(0)
  • 2020-12-05 09:45

    Just realized what's going on.

    I had the navbar inside a header which was position: fixed;

    Changed the z-index on the header and it's working now - guess I didn't look high enough up the containers to set the z-index initially !#@!?

    Thanks.

    0 讨论(0)
  • 2020-12-05 09:48

    This fixed it for me:

    .navbar-wrapper {
      z-index: 11;
    }
    
    0 讨论(0)
  • 2020-12-05 09:52

    I had the same problem, in my case because i forgot this in my NavBar style: overflow: hidden;

    0 讨论(0)
  • 2020-12-05 09:53

    IE 7 on windows8 with bootstrap 3.0.0.

    .navbar {
      position: static;
    }
    .navbar .nav > li {
      z-index: 1001;
    }
    

    fixed

    0 讨论(0)
  • 2020-12-05 09:56

    This worked for me:

    .dropdown, .dropdown-menu {
      z-index:2;
    }
    .navbar {
      position: static;
      z-index: 1;
    }
    
    0 讨论(0)
提交回复
热议问题