admin管理员组文章数量:1394099
I have a problem with the icons of font awesome. They are showing, though not all. Some icons just show a square and I don’t know how to fix it.
So this is how it looks like:
If I go to the console and remove the tick on “font” and “font-family” it will appear again correctly. I can’t understand why
So how can I delete these properties?
I have a problem with the icons of font awesome. They are showing, though not all. Some icons just show a square and I don’t know how to fix it.
So this is how it looks like:
If I go to the console and remove the tick on “font” and “font-family” it will appear again correctly. I can’t understand why
So how can I delete these properties?
Share Improve this question asked Mar 6, 2020 at 12:41 HaidepzaiHaidepzai 1011 bronze badge 3 |1 Answer
Reset to default 1In typography, a square appears when you ask for a character that is not included in the font.
By adding the property !important to font-family:, your naviagator is obliged to use Font Awesome.
Look carefully at your two screenshots. Neither of the icons is identical.
Some solutions:
Modify your css
.fa{ font-family: 'font-awesome'; font: normal normal normal 14px/1 }
Use a other icon font
Make sure you call the Unicode character: f0e4
I hope this will help you.
本文标签: Font Awesome Icons only squares
版权声明:本文标题:Font Awesome Icons only squares 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744688062a2619822.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
.fa.fa-dashboard:before { content: "\f3fd" !important; }
but I have no clue why it works... – Haidepzai Commented Mar 6, 2020 at 14:13