Font awesome is not showing icon

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

    For a start, you shouldn't have both font-awesome.css and font-awesome.min.css

    Generally, use font-awesome.css during development, then switch to font-awesome.min.css once you're happy with the site.

    Problems like this are often caused by relative paths and locations, so check where your html file is in relation to the css.

    If your html file is in the base directory, and the css in a subfolder off the root, you would need: href="./css/font-awesome.css" (single period)

提交回复
热议问题