在角度投影中未显示的有趣图标 [英] Fontawesome icons not showing in angular project
本文介绍了在角度投影中未显示的有趣图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用npm install --save font-awesome
然后我将css添加到我的angular.json,如下所示:
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/font-awesome/css/font-awesome.min.css",
"src/styles.css"
],
然后我将其添加到我的html文件中:
<button type="button" class="btn btn-outline-primary">
<i class="fa fa-arrow-left"></i>
</button>
在我的网页上显示一个空按钮,我做错了什么?
推荐答案
You can give the address in the styles.scss instead of the address in the package
this way should work
@导入";~font-awesome/css/font-awesome.min.css";;
这篇关于在角度投影中未显示的有趣图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文