Bootstrap dropdown menu text color

后端 未结 3 1576
花落未央
花落未央 2021-02-15 11:09

So i\'m working with Twitter\'s Bootstrap for the first time and I\'m trying to change the color of the text inside the dropdown menus once they have collapsed. (if that makes s

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-15 11:33

    You should be able to use this CSS..

      /*-- change navbar dropdown color --*/
      .navbar-default .navbar-nav .open .dropdown-menu>li>a,.navbar-default .navbar-nav .open .dropdown-menu {
        background-color: #3344ff;
        color:#ffffff;
      }
    

    Demo: http://www.bootply.com/113750

提交回复
热议问题