Bootstrap dropdown button turns half black on clicking?

前端 未结 1 869
星月不相逢
星月不相逢 2021-01-06 14:58

Advance sorry for this silly question, I created a sign in dropdown button in navbar(navbar-inverse) but on clicking the button turns half black. I didnt customize the butto

1条回答
  •  走了就别回头了
    2021-01-06 15:36

    The issue is because of the .navbar-inverse .nav li.dropdown.open and .navbar .nav li.dropdown.open classes .

    Please use the following classes into your custom stylesheet , changing the background-color to your choice .

    .navbar-inverse .nav li.dropdown.open > .dropdown-toggle, .navbar-inverse .nav   li.dropdown.active > .dropdown-toggle, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle {
    background-color:#BD362F;
    color: #FFFFFF;
     }
           .navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle {
    background-color:#BD362F;
    color: #555555;
     }
    

    The jsfiddle for you Jsfiddle with drop down

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