字体很棒@ font-face

时间:2018-09-25 07:18:44

标签: font-awesome font-face

我在custom-fonts文件夹中上传了很棒的字体,并使用@ font-face进行加载。 不幸的是,该符号没有出现。

@font-face { 
font-family: 'Font Awesome 5 Free';  
font-style: normal;  font-weight: 400;   
src: url("https://mydomain.de/custom-fonts/fa-regular-400.eot");
src: url("https://mydomain.de/custom-fonts/fa-regular-400.eot?#iefix") format("embedded-opentype"), 
url("https://mydomain.de/custom-fonts/fa-regular-400.woff2") format("woff2"), url("https://mydomain.de/custom-fonts/fa-regular-400.woff") format("woff"), url("https://mydomain.de/custom-fonts/fa-regular-400.ttf") format("truetype"), url("https://mydomain.de/custom-fonts/fa-regular-400.svg#fontawesome") format("svg"); 
}

Css:

#page-43 .type-post p a:after, 
#page-475 .type-post p a:after, 
#page-495 .type-post p a:after, 
#page-500 .type-post p a:after{
font-family: "Font Awesome 5 Free";          
font-weight: 400; 
content: " \f35d";
}

您能说出为什么我的图标没有显示吗?我哪里出错了?

0 个答案:

没有答案
相关问题