The icons, such as "xmark", do not work because they are not included in the Font Awesome version 5 free icon set. And the question specifically asks about version 5 by including a link. The possible solutions are (1) don't use missing icons or (2) upgrade to Font Awesome 6.
And as an aside, Bootstrap 5 now has its own quite extensive set of icons which can be found here:
It seems that xmark icons are available only in 6.2.0 version which is paid. I have found a workaround: you can download .svg file of the icon you like and use it in your project with help of <img> tag. You will lose some fancy functionality like easy customization but it still works.
发布评论
评论(4)
解决方案 - 升级到字体很棒的6
图标,例如“ xmark”,不起作用,因为它们不包含在字体上很棒的版本5免费图标集中。这个问题专门询问版本5,包括一个链接。可能的解决方案是(1)不要使用缺少的图标或(2)升级到字体上很棒的6。
除了旁边,Bootstrap 5现在拥有自己的相当广泛的图标集,可以在此处找到:
bootstrap图标
Solution - Upgrade to Font Awesome 6
The icons, such as "xmark", do not work because they are not included in the Font Awesome version 5 free icon set. And the question specifically asks about version 5 by including a link. The possible solutions are (1) don't use missing icons or (2) upgrade to Font Awesome 6.
And as an aside, Bootstrap 5 now has its own quite extensive set of icons which can be found here:
Bootstrap Icons
在版本 5 中使用“times”表示“xmark”和“x”
https ://fontawesome.com/v5/icons/times?s=solid&f=classic
Use "times" in version 5 for "xmark" and "x"
https://fontawesome.com/v5/icons/times?s=solid&f=classic
我的快速解决方法是使用 fa-close 替换 fa-xmark
我正在使用 bootstrap 5,fa-xmark 不起作用,有时只有 fa-check 有效。
请参阅下面的示例,橙色图标和绿色图标
My quick work around is use fa-close to replace fa-xmark
I am using bootstrap 5, fa-xmark not working, only fa-check works sometimes.
see example my example below orange icon and green icon
似乎xmark图标仅在付费的6.2.0版本中可用。我找到了一个解决方法:您可以下载您喜欢的图标的 .svg 文件,并在
![]()
标签的帮助下在您的项目中使用它。您将失去一些奇特的功能,例如轻松定制,但它仍然有效。It seems that xmark icons are available only in 6.2.0 version which is paid. I have found a workaround: you can download .svg file of the icon you like and use it in your project with help of
<img>
tag. You will lose some fancy functionality like easy customization but it still works.