Font awesome is not showing icon

后端 未结 30 1264
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 06:03

I am using Font Awesome and do not wish to add CSS with HTTP. I downloaded Font Awesome and included it in my code, yet Font Awesome is showing a bordered square box instead

30条回答
  •  孤城傲影
    2020-11-30 06:50

    Based on the 5.10.1 version.

    My solution (locally):

    1. If you're using "fontawesome.css" or "fontawesome.min.css", try using "all.css" instead (located in the css folder).

    2. The "css" folder and the "webfonts" folder from the fontawesome package that you downloaded must be in the same level as each other.

    In my case, I already had a css folder so I just renamed the fontawesome css folder to "css-fa".

    With both "css-fa" and "webfonts" in my css folder, simply link it correctly in your text editor and it should work.

    Ex: link rel="stylesheet" href="css/css-fa/all.css"

提交回复
热议问题