fontawesome 图标未显示,但为什么?
为什么我的图标没有显示?
它看起来像这样:
我已经添加了这个
<script src="https://kit.fontawesome.com/bfb4213bb3.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css" type="text/css" />
<!-- Load font awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css">
<i class="fa-solid fa-star"></i>
why are my icons not showing ?
its looks like this:
I have added this
<script src="https://kit.fontawesome.com/bfb4213bb3.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css" type="text/css" />
<!-- Load font awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css">
<i class="fa-solid fa-star"></i>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在使用 fontawesome v6 图标类,而是将搜索中的版本更改为:

正确的是:
you are using the fontawesome v6 icon classes instead change the version in search to:

the correct one is :
您所需要的只是 FontAwesome 的套件:
您可以删除:
如果您的套件设置正确,您应该能够在此处看到“如何使用”页面:
https://fontawesome.com/kits/bfb4213bb3/use
All you need is your kit for FontAwesome:
You can delete the:
If your kit is set up correctly, you should be able to see the "how to use" page here:
https://fontawesome.com/kits/bfb4213bb3/use