FontAwesome不会显示图标

时间:2019-03-28 17:36:44

标签: html

<link rel="stylesheet"href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">


This code works, it shows an igloo in a white circle (just as I want it)

<li><a href="https://twitter.com/" class="fa fa-igloo"></a></li>

This however, shows a square instead of the icon. Indicating that it isn't working. Does anyone know why?

<li><a href="https://github.com/" class="fa fa-github"></a></li>

1 个答案:

答案 0 :(得分:0)

尝试这样做:

<li><a href="https://github.com/" class="fab fa-github"></a></li>

因为fa是品牌的一部分,所以如果使用fab类,请使用fa-github