Font Awesome 图标未显示,但其他图标显示
我见过很多人遇到这个问题,但他们都有不同的解决方案,但没有一个对我有用。 我尝试将“fa”更改为“fas”和“fab”,导入了一堆 CDN、文件、all.css、链接,但都不起作用。但它适用于某些图标。 例如,这个有效:
<i class="fas fa-scissors"></i>
但这个无效:
<i class="fas fa-person-fill"></i>
我该如何解决这个问题?
我尝试将“fa”更改为“fas”和“fab”,导入了一堆 CDN、文件、all.css、链接,但都不起作用。但它适用于某些图标。 例如,这个有效:
<i class="fas fa-scissors"></i>
但这个无效:
<i class="fas fa-person-fill"></i>
我该如何解决这个问题?
I've seen a lot of people with this problem, but they all had different solutions but none has worked for me.
I've tried changing "fa" to "fas" and "fab", I've imported a bunch of CDNs, files, all.css, links and none worked. But it works for some icons.
For example, this one works:
<i class="fas fa-scissors"></i>
but this one doesn't:
<i class="fas fa-person-fill"></i>
How can I solve this?
I've tried changing "fa" to "fas" and "fab", I've imported a bunch of CDNs, files, all.css, links and none worked. But it works for some icons.
For example, this one works:
<i class="fas fa-scissors"></i>
but this one doesn't:
<i class="fas fa-person-fill"></i>
How can I solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
图标名称后面的
fill
是一个bootstrap
的东西,但您需要将fa
或fas
更改为>bi
查看 bootstrap 和 font-awesome
以下是如何使用 font Awesome 和 bootstrap 图标:
The
fill
after the icon name is abootstrap
thing but you need to change thefa
orfas
tobi
see the available icons for bootstrap and font-awesome
here is how you can use both font awesome and bootstrap icons:
您不需要将“fill”作为名称的一部分 - “FAS”前缀代表“Font Awesome SOLID” - 因此默认情况下会填充它
You do not need the "fill" as part of the name -the "FAS" prefix stands for "Font Awesome SOLID" - so its filled in by default