Can I add color to bootstrap icons only using CSS?

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

    The Bootstrap Glyphicons are fonts. This means it can be changed like any other text through CSS styling.

    CSS:

    
    

    HTML:

    
    

    Example:

    
    
    
    Glyphicon Colors
    
    
    
    
    
        
    
    
    


    Watch the course Up and Running with Bootstrap 3 by Jen Kramer, or watch the individual lesson on Overriding core CSS with custom styles.

提交回复
热议问题