Font awesome is not showing icon

后端 未结 30 1266
爱一瞬间的悲伤
爱一瞬间的悲伤 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 07:05

    When you open font-awesome.min.css you can see following path:

    'Fonts/fontawesome-webfont.ttf?v=4.2.0' ...
    

    It means that you have to create directory Fonts and then copy files fontawesome-webfont.ttf (fontawesome-webfont.woff, fontawesome-webfont.eot) to this folder. After that everything should work fine.

提交回复
热议问题