字体很棒的圆圈没有出现

雷萨

在我的 package.json 中,我有

 "dependencies": {
    "font-awesome": "^4.7.0"
  }

在我的 html 中,我有

<link rel="stylesheet" type="text/css" href="../node_modules/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">

如果我注释掉第二个链接,我的字体很棒的图标都不会显示,我只会得到空的矩形。

在我的 css 中,我有

fas fa-circle

有人看到我做错了什么吗?

雷萨

对于本地安装的 4.7.0 版,我应该使用 fa 而不是 fas。

    <link rel="stylesheet" type="text/css" href="../node_modules/font-awesome/css/font-awesome.css">

包是

    "font-awesome": "^4.7.0"

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章