简体   繁体   中英

Font-Awesome loading the icons as squares

I had installed the font-awesome free version in my pc and tried to run, using a icon in my page,but this doenst work. I'm using a local link to load the font-awesome css,not taking directly from the web. My font-awesome is free version 5.15.2

<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/fontawesome.css">
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/fontawesome.min.css">

Here is the icon I'm trying to use

<i class="fas fa-paw"></i>

Have you inserted the webfonts folder in your website?

You will have something like that:

  • CSS
    • bootstrap.css
  • JS
    • bootstrap.js
  • webfonts
    • all the font awesome web fonts are here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM