跳至内容
欢迎 Web Awesome,最大的、最棒的开源 Web 组件库。
今天预订!

SVG Unicode

想要在页面上使用 Unicode 值以及 SVG + JS 方法来显示图标吗?没问题!

将图标添加为 Unicode

使用 SVG+JS 方法时,您可以 以任何样式添加图标 作为 Unicode。只需添加 要使用样式的类 来选择图标样式,然后插入 Unicode 值(在 Unicode 前面加上 &#x,后面加上 ;)到 <i> 元素的开头和结尾之间。

以下是一些示例

B1!
<i class="fa-solid fa-2x">&#x42;</i>
<i class="fa-regular fa-2x fa-spin">&#xf436;</i>
<i class="fa-duotone fa-2x fa-shake">&#xf437;</i>
<i class="fa-light fa-2x">&#x31;</i>
<i class="fa-sharp fa-solid fa-2x">&#x21;</i>

我在哪里可以找到图标的 Unicode?

搜索图标时,只需点击您选择的图标,Unicode 值就会显示在显示如何使用图标的代码块上方。

Font Awesome 6 installed and being activated in Font Explorer X on Mac OS X