为什么Font-Awesome图标类别不同 [英] Why Font-Awesome icon class is different

查看:82
本文介绍了为什么Font-Awesome图标类别不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么fontawesome图标类别不同

Why fontawesome icon class is different

<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>

推荐答案

fa前缀在版本5中已弃用.新的默认设置是fas实体样式和品牌的fab样式.

The fa prefix has been deprecated in version 5. The new default is the fas solid style and the fab style for brands.

请参考此

https://fontawesome.com/如何使用/在网络上/引用图标/基本使用

这篇关于为什么Font-Awesome图标类别不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆