Font Awesome Background color

前端 未结 5 1952
傲寒
傲寒 2020-12-05 13:27

When using the brilliant Font Awesome, how can I make the icons not transparent - for instance if I want to use http://fortawesome.github.io/Font-Awesome/icon/chevron-circle

5条回答
  •  春和景丽
    2020-12-05 14:10

    you can use fa-stack with the fa-circle icon under the other to have better control on the pixel just at the border:

    
        
        
    
    

    with:

    .icon-a {
        color: #FFF;
        font-size: 0.9em;
    }
    .icon-b {
        color: #000;
    }
    

提交回复
热议问题