Can I add color to bootstrap icons only using CSS?

后端 未结 14 1489
说谎
说谎 2020-11-28 02:58

Twitter\'s bootstrap uses Icons by Glyphicons. They are \"available in dark gray and white\" by default:

14条回答
  •  忘掉有多难
    2020-11-28 03:43

    Because the glyphicons are now fonts, one can use the contextual classes to apply the appropriate color to the icons.

    For example: adding text-info to the css will make the icon the info blue color.

提交回复
热议问题