【问题标题】:Bootstrap 3 & Font-Awesome 4 colorchangeBootstrap 3 & Font-Awesome 4 变色
【发布时间】:2014-06-02 15:33:21
【问题描述】:

如何将我的 bootstrap3 的 fa fa-xxxx 从 font-awesome 将颜色从灰色更改为白色?背景是黑色的,所以我需要其他颜色的图标。

【问题讨论】:

    标签: twitter-bootstrap twitter-bootstrap-3 font-awesome-4


    【解决方案1】:

    使用图标字体的好处在于,一旦将它们导入您的网站,您就可以像更改任何其他字体一样更改它们的大小、颜色或其他属性。比如:

    HTML

    <i class="fa fa-bullhorn"> </i> hello world  
    

    CSS

    i.fa{
        font-size:100px;
        color:olive;
    }
    

    希望这会有所帮助!

    现场观看:http://jsfiddle.net/panchroma/GLVSx/

    【讨论】:

      猜你喜欢
      • 2016-05-02
      • 2018-10-11
      • 2018-04-10
      • 2018-01-22
      • 2013-08-31
      • 1970-01-01
      • 2013-11-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多