我习惯使用 Google Material 图标,为此我通常会像这样包含它...
// Pug
link(href="https://fonts.googleapis.com/css?family=Material+Icons&display=block", rel="stylesheet")
里面是这样的代码......
// css
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
font-display: block;
src: url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
但是,我正在使用另一个字体图标文件,并且尝试以相同的方式进行操作,但失败了。经过一番调查,似乎需要这样的明确声明......
.ico_thing:before {
content: "\E000";
}
注意 Google 包没有明确定义内容。为什么这在这个库中而不是在 Material 中明确定义?