【发布时间】:2018-12-26 05:56:56
【问题描述】:
如何将 Font Awesome 图标嵌入到外部 css 样式表中。
对于 Font Awesome 5 和免费图标---
#preview .buttons .ok {
border: 1px solid #F5F5F5;
border-radius: 4px;
width: 28px;
height: 28px;
font-size: 20px;
}
.ok:before {
content: "\e900";
display: inline-block;
font-family: "Font Awesome 5 Free";
font-weight: 700;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
}
现在试试吧..
【问题讨论】:
-
你是如何导入字体真棒的?你能在代码 sn-p 中复制你的问题吗?
-
什么版本的字体很棒?
-
@לבנימלכה 4.3 版
-
@AravindS 我不知道怎么写
-
显示字体真棒的链接
标签: html css bootstrap-4 icons font-awesome