Bootstrap dropdown menu text color

后端 未结 3 1647
花落未央
花落未央 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:32

    previous answer is saying the same thing pretty much, but their syntax and commenting was a little confusing for me, so possibly it confused others too... you're first calling out the 'dropdown-menu' class, then the 'li' html element within that class, then, the 'a' html element nested within the 'li' element, so CSS looks like this:

    .dropdown-menu li a {
        color: white;
    }
    

提交回复
热议问题