how to use font awesome in own css?

后端 未结 4 924
北荒
北荒 2021-02-05 13:04

I\'m using bootstrap and Font Awesome. In a custom css class I\'m working on I tried to include Font Awesome icons instead of using images. Here is my code before Font Awesome.<

4条回答
  •  误落风尘
    2021-02-05 13:38

    The spirit of Web font is to use cache as much as possible, therefore you should use CDN version between instead of hosting yourself:

    
    

    Also, make sure you loaded your CSS AFTER the above line, or your custom font CSS won't work.

    Reference: Font Awesome Get Started

提交回复
热议问题