字体真棒Unicode“ \ f046”未在Chrome中显示

问题描述 投票:0回答:2

我正在尝试在我的网页上使用Awesome Font Unicode(https://fontawesome.com/v4.7.0/icon/check-square-o)。

但是显示如下。

enter image description here

我花了很多时间寻找Unicode无法在互联网上的Chrome中显示的原因。但仍然没有运气。

.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>
html css font-awesome
2个回答
3
投票

如本页所述,正在搜索的图标是\f14a

https://fontawesome.com/icons/check-square?style=regular

它说:

This icon replaces Font Awesome 4's fa-check-square-o

请注意,您共享的链接适用于Font Awesome 4,但在HTML中,您使用的是版本5。


2
投票

没有可使用值/f046的图标作为伪元素。检查该备忘单中可以使用的图标:

https://fontawesome.com/cheatsheet

© www.soinside.com 2019 - 2024. All rights reserved.