Font awesome icon showing as square in chrome?

后端 未结 6 1074
生来不讨喜
生来不讨喜 2021-02-20 03:49

I am trying to use a font-awsome icon within a button. The icon works fine in firefox but when I use it in chrome it appears as a square. I have looked around and the only thing

6条回答
  •  青春惊慌失措
    2021-02-20 04:14

    The above answer is correct but I wanted to clarify one step further because I don't think it's clear on the font awesome page for getting started. I added the min.css stylesheet and linked to it in the head section of my page. You'll also need to get the five font files and put them in your "fonts" folder of your project. There should be five files and they will end in:

    .eot .svg .ttf .woff .otf

    I retrieved the files from github here: https://github.com/FortAwesome/Font-Awesome

提交回复
热议问题