Fai*_*yed 15 css fonts font-awesome sonarqube
我在我的一个项目中使用 FontAwesome 4.7,并且我们集成了 SonarQube。在我的自定义 CSS 文件中的几个地方,我必须手动提供 Font-Family,例如:
.calendar-wrapper:after {
font-family: 'FontAwesome';
content: '\f073';
position: absolute;
right: 9px;
top: 9px;
}
Run Code Online (Sandbox Code Playgroud)
但在这一行,SonarQube 向我展示了错误:意外缺少通用字体系列(此处规则)
FontAwesome 的通用字体系列应该是什么?我在互联网上到处查看但尚未找到任何解决方案。
Dur*_*sad 21
“FontAwesome”是一种自定义字体,因此 sonarqube 要求添加通用字体作为后备。添加像“sans-serif”这样的通用字体就足够了。
.calendar-wrapper:after {
font-family: 'FontAwesome', sans-serif;
content: '\f073';
position: absolute;
right: 9px;
top: 9px;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
28459 次 |
| 最近记录: |