我有一个使用CSS类的蚂蚁html页面显示一个AwesomeFont的内容f058,但它现在显示为一个正方形。真棒字体显示为正方形
HTML: -
<div class="sucessfullChange">
<div class="sucessfullUsageChangeMessageConfirmation">
</div>
<span style="word-break: break-all" class="sucessfullChangeMessage">Congrats.</span>
</div>
CSS: -
.sucessfullUsageChangeMessageConfirmation {
&:after {
content: "\f058";
font-family: "FontAwesome";
font-style: normal;
font-weight: normal;
text-decoration: inherit;
color: $colorGreen;
font-size: 31px;
padding-right: 0.5em;
position: absolute;
top: 13px;
left: 28px;
@include for-tablet {
left: 19px;
}
@include for-phone {
top: 14px;
left: 36px;
}
}
}
我在做什么错在这里?
请在您的字体真棒文件适当地包括? – devpro
查看控制台是否有错误,可能是您的字体未正确加载 –