简体   繁体   English

Font-Awesome 将图标加载为正方形

[英]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.我正在使用本地链接来加载令人敬畏的字体 css,而不是直接从 web 获取。 My font-awesome is free version 5.15.2我的 font-awesome 是免费版本 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?您是否在您的网站中插入了 webfonts 文件夹?

You will have something like that:你会有类似的东西:

  • CSS CSS
    • bootstrap.css引导程序.css
  • JS JS
    • bootstrap.js引导程序.js
  • webfonts网页字体
    • all the font awesome web fonts are here.所有令人敬畏的字体 web fonts 都在这里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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