|
|
|
# Iconfont
|
|
|
|
|
|
|
|
- category: CSS
|
|
|
|
- chinese: 字体图标
|
|
|
|
- order: 1
|
|
|
|
- nodemos: true
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
有含义的矢量图形,每一个图标打倒一个敌人。
|
|
|
|
|
|
|
|
## 图标的命名规范
|
|
|
|
|
|
|
|
我们为每个图标赋予了语义化的命名。我们的命名规范如:
|
|
|
|
|
|
|
|
- 使用 `-` 来连接单词;
|
|
|
|
|
|
|
|
- 实心和描线图标保持同名,用 `-o` 来区分,比如 `question-circle`(实心) 和 `question-circle-o`(描线);
|
|
|
|
|
|
|
|
- 命名顺序:`[icon名]-[描线与否]-[方向]`。
|
|
|
|
|
|
|
|
每个图标的类名需要在图标名称前加上 `anticon-` 前缀,如 `.anticon-question-circle`。
|
|
|
|
|
|
|
|
## 如何使用
|
|
|
|
|
|
|
|
使用时所有的图标都需要一个基类 `.anticon` 和对应每个图标的类。在这里,我们使用 `<i>` 标签,如下面代码演示使用即可。
|
|
|
|
|
|
|
|
```html
|
|
|
|
<i class="anticon anticon-link"></i>
|
|
|
|
```
|
|
|
|
|
|
|
|
> 点击图标复制代码。
|
|
|
|
|
|
|
|
## 图标列表
|
|
|
|
|
|
|
|
### 一. 方向性图标
|
|
|
|
|
|
|
|
<ul class="row anticons-list clearfix">
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-step-backward"></i>
|
|
|
|
<span class="anticon-class">step-backward</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-step-forward"></i>
|
|
|
|
<span class="anticon-class">step-forward</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-fast-backward"></i>
|
|
|
|
<span class="anticon-class">fast-backward</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-fast-forward"></i>
|
|
|
|
<span class="anticon-class">fast-forward</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-shrink"></i>
|
|
|
|
<span class="anticon-class">shrink</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-arrow-salt"></i>
|
|
|
|
<span class="anticon-class">arrow-salt</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-down"></i>
|
|
|
|
<span class="anticon-class">down</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-up"></i>
|
|
|
|
<span class="anticon-class">up</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-left"></i>
|
|
|
|
<span class="anticon-class">left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-right"></i>
|
|
|
|
<span class="anticon-class">right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-down"></i>
|
|
|
|
<span class="anticon-class">caret-down</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-up"></i>
|
|
|
|
<span class="anticon-class">caret-up</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-left"></i>
|
|
|
|
<span class="anticon-class">caret-left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-right"></i>
|
|
|
|
<span class="anticon-class">caret-right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-circle-right"></i>
|
|
|
|
<span class="anticon-class">caret-circle-right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-circle-left"></i>
|
|
|
|
<span class="anticon-class">caret-circle-left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-circle-o-right"></i>
|
|
|
|
<span class="anticon-class">caret-circle-o-right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-caret-circle-o-left"></i>
|
|
|
|
<span class="anticon-class">caret-circle-o-left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-circle-right"></i>
|
|
|
|
<span class="anticon-class">circle-right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-circle-left"></i>
|
|
|
|
<span class="anticon-class">circle-left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-circle-o-right"></i>
|
|
|
|
<span class="anticon-class">circle-o-right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-circle-o-left"></i>
|
|
|
|
<span class="anticon-class">circle-o-left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-double-right"></i>
|
|
|
|
<span class="anticon-class">double-right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-double-left"></i>
|
|
|
|
<span class="anticon-class">double-left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-verticle-right"></i>
|
|
|
|
<span class="anticon-class">verticle-right</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-verticle-left"></i>
|
|
|
|
<span class="anticon-class">verticle-left</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-forward"></i>
|
|
|
|
<span class="anticon-class">forward</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-backward"></i>
|
|
|
|
<span class="anticon-class">backward</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-rollback"></i>
|
|
|
|
<span class="anticon-class">rollback</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-retweet"></i>
|
|
|
|
<span class="anticon-class">retweet</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
### 二. 提示建议性图标
|
|
|
|
|
|
|
|
<ul class="anticons-list clearfix">
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-question"></i>
|
|
|
|
<span class="anticon-class">question</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-question-circle-o"></i>
|
|
|
|
<span class="anticon-class">question-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-question-circle"></i>
|
|
|
|
<span class="anticon-class">question-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-plus"></i>
|
|
|
|
<span class="anticon-class">plus</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-plus-circle-o"></i>
|
|
|
|
<span class="anticon-class">plus-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-plus-circle"></i>
|
|
|
|
<span class="anticon-class">plus-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-pause"></i>
|
|
|
|
<span class="anticon-class">pause</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-pause-circle-o"></i>
|
|
|
|
<span class="anticon-class">pause-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-pause-circle"></i>
|
|
|
|
<span class="anticon-class">pause-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-minus"></i>
|
|
|
|
<span class="anticon-class">minus</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-minus-circle-o"></i>
|
|
|
|
<span class="anticon-class">minus-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-minus-circle"></i>
|
|
|
|
<span class="anticon-class">minus-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-info"></i>
|
|
|
|
<span class="anticon-class">info</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-info-circle-o"></i>
|
|
|
|
<span class="anticon-class">info-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-info-circle"></i>
|
|
|
|
<span class="anticon-class">info-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-exclamation"></i>
|
|
|
|
<span class="anticon-class">exclamation</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-exclamation-circle-o"></i>
|
|
|
|
<span class="anticon-class">exclamation-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-exclamation-circle"></i>
|
|
|
|
<span class="anticon-class">exclamation-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-cross"></i>
|
|
|
|
<span class="anticon-class">cross</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-cross-circle-o"></i>
|
|
|
|
<span class="anticon-class">cross-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-cross-circle"></i>
|
|
|
|
<span class="anticon-class">cross-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-check"></i>
|
|
|
|
<span class="anticon-class">check</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-check-circle-o"></i>
|
|
|
|
<span class="anticon-class">check-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-check-circle"></i>
|
|
|
|
<span class="anticon-class">check-circle</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-clock-circle-o"></i>
|
|
|
|
<span class="anticon-class">clock-circle-o</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-clock-circle"></i>
|
|
|
|
<span class="anticon-class">clock-circle</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
### 三. 网站通用图标
|
|
|
|
|
|
|
|
<ul class="anticons-list clearfix">
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-lock"></i>
|
|
|
|
<span class="anticon-class">lock</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-unlock"></i>
|
|
|
|
<span class="anticon-class">unlock</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-android"></i>
|
|
|
|
<span class="anticon-class">android</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-apple"></i>
|
|
|
|
<span class="anticon-class">apple</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-area-chart"></i>
|
|
|
|
<span class="anticon-class">area-chart</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-bar-chart"></i>
|
|
|
|
<span class="anticon-class">bar-chart</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-bars"></i>
|
|
|
|
<span class="anticon-class">bars</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-book"></i>
|
|
|
|
<span class="anticon-class">book</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-calendar"></i>
|
|
|
|
<span class="anticon-class">calendar</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-cloud"></i>
|
|
|
|
<span class="anticon-class">cloud</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-cloud-download"></i>
|
|
|
|
<span class="anticon-class">cloud-download</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-code"></i>
|
|
|
|
<span class="anticon-class">code</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-copy"></i>
|
|
|
|
<span class="anticon-class">copy</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-credit-card"></i>
|
|
|
|
<span class="anticon-class">credit-card</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-delete"></i>
|
|
|
|
<span class="anticon-class">delete</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-desktop"></i>
|
|
|
|
<span class="anticon-class">desktop</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-download-line"></i>
|
|
|
|
<span class="anticon-class">download-line</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-edit"></i>
|
|
|
|
<span class="anticon-class">edit</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-ellipsis"></i>
|
|
|
|
<span class="anticon-class">ellipsis</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-environment"></i>
|
|
|
|
<span class="anticon-class">environment</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-file"></i>
|
|
|
|
<span class="anticon-class">file</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-file-text"></i>
|
|
|
|
<span class="anticon-class">file-text</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-folder"></i>
|
|
|
|
<span class="anticon-class">folder</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-folder-open"></i>
|
|
|
|
<span class="anticon-class">folder-open</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-github"></i>
|
|
|
|
<span class="anticon-class">github</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-hdd"></i>
|
|
|
|
<span class="anticon-class">hdd</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-frown"></i>
|
|
|
|
<span class="anticon-class">frown</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-meh"></i>
|
|
|
|
<span class="anticon-class">meh</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-inbox"></i>
|
|
|
|
<span class="anticon-class">inbox</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<i class="anticon anticon-laptop"></i>
|
|
|
|
<span class="anticon-class">laptop</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|