简体   繁体   English

图标未与 fontAwsome 一起显示

[英]icon is not displayed with fontAwsome

I have the following code on my html page with angular 7.x and fontAwesome version 5.7.1我的 html 页面上有以下代码,带有 angular 7.x 和 fontAwesome 版本 5.7.1

<i class = "fa fa-pencil"> </ i>

All the other icons and buttons are displayed well showing trash can and others but the pencil does not show it?所有其他图标和按钮都显示得很好,显示垃圾桶和其他图标,但铅笔不显示? what can happen?会发生什么?

Just change it to:只需将其更改为:

<i class="fas fa-pencil-alt"></i>

This icon name replaced version 4 "fa-pencil".此图标名称取代了第 4 版“fa-pencil”。

here you can find more help: https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4在这里您可以找到更多帮助: https : //fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM