为什么fontawesome图标类不同
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<i class="fa fa-edit"></i>
<i class="fas fa-pencil"></i>
<i class="fab fa-facebook"></i>
答案 0 :(得分:14)
在版本5中不推荐使用fa前缀。新的默认设置是fas solid样式和品牌的fab样式。
请参阅此
https://fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use
答案 1 :(得分:11)