我正在尝试使用Font Awesome Unicode(https:/fontawesome.comv4.7.0iconcheck-square-o。)在我的网页上。
但它却显示如下。
我花了很多时间在互联网上搜索为什么在Chrome浏览器中不显示Unicode的原因,但仍然没有结果。
.myClass {
font-size: 45px;
}
.myClass::after {
font-family: 'Font Awesome 5 Free';
font-weight: 900;
content: "\f046";
}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css">
<span class='myClass'>Hiiii</span>
如本页面所述,你要找的图标是 \f14a
https:/fontawesome.comiconscheck-square?style=regular)。
上面写着:"请注意,你分享的链接是Font Awesome 4的,但在HTML中你使用的是5版。
This icon replaces Font Awesome 4's fa-check-square-o
请注意,你分享的链接是Font Awesome 4的,但在HTML中,你使用的是5版本。
没有任何有价值的图标 /f046
可以作为伪元素使用。查看这个小抄,了解你可以使用的图标。