Can I add color to bootstrap icons only using CSS?

后端 未结 14 1440
说谎
说谎 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:50

    With the latest release of Bootstrap RC 3, changing the color of the icons is as simple as adding a class with the color you want and adding it to the span.

    Default black color:

    Password Changed

    would become

    Password Changed

    CSS

    .icon-success {
        color: #5CB85C;
    }
    

    Bootstrap 3 Glyphicons List

提交回复
热议问题