<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>
答案 0 :(得分:0)
尝试这样做:
<li><a href="https://github.com/" class="fab fa-github"></a></li>
因为fa
是品牌的一部分,所以如果使用fab
类,请使用fa-github
。