【发布时间】:2022-01-17 05:03:37
【问题描述】:
<html>
<head>
<style>
h1::after {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f5fc";
}
</style>
</head>
<body>
<h1>Heading</h1>
</body>
</html>
这段代码有什么问题吗? 我已经多次更改字体粗细,但它一直显示那个空心框
【问题讨论】:
-
尝试使用 font awesome 版本 4。我想它会解决你的问题。
-
创建您的第一个工具包并将其粘贴到标题标签。 fontawesome.com/start
标签: css pseudo-element