我有一個使用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
查看控制檯是否有錯誤,可能是您的字體未正確加載 –