ant-design/components/iconfont/index.md

513 lines
13 KiB
Markdown
Raw Normal View History

2015-05-27 15:43:29 +08:00
# Iconfont
- category: CSS
- chinese: 字体图标
2015-06-02 12:11:49 +08:00
- order: 1
2015-06-07 17:18:14 +08:00
- nodemos: true
2015-05-27 15:43:29 +08:00
---
2015-06-07 14:01:59 +08:00
## 如何使用
我们对每个图标都采用了语义化的命名,使用时所有的图标都需要一个基类 `.anticon` 和对应每个图标的类。在这里,我们使用 `<span>` 标签,如下面代码演示使用即可~
```html
<span class="anticon anticon-link"></span>
```
2015-05-27 15:43:29 +08:00
## 图标列表
2015-06-08 22:42:36 +08:00
### 一. 方向性图标
<ul class="row anticons-list fn-clear">
<li>
<span class="anticon anticon-step-backward"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">step-backward</span>
</li>
<li>
<span class="anticon anticon-step-forward"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">step-forward</span>
</li>
<li>
<span class="anticon anticon-fast-backward"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">fast-backward</span>
</li>
<li>
<span class="anticon anticon-fast-forward"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">fast-forward</span>
</li>
<li>
<span class="anticon anticon-shrink"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">shrink</span>
</li>
<li>
<span class="anticon anticon-arrow-salt"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">arrow-salt</span>
</li>
<li>
<span class="anticon anticon-caret-down"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-down</span>
</li>
<li>
<span class="anticon anticon-caret-up"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-up</span>
</li>
<li>
<span class="anticon anticon-caret-left"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-left</span>
</li>
<li>
<span class="anticon anticon-caret-right"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-right</span>
</li>
<li>
<span class="anticon anticon-caret-circle-right"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-circle-right</span>
</li>
<li>
<span class="anticon anticon-caret-circle-left"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-circle-left</span>
</li>
<li>
<span class="anticon anticon-caret-circleo-right"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-circleo-right</span>
</li>
<li>
<span class="anticon anticon-caret-circleo-left"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">caret-circleo-left</span>
</li>
<li>
<span class="anticon anticon-angle-circle-right"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-circle-right</span>
</li>
<li>
<span class="anticon anticon-angle-circle-left"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-circle-left</span>
</li>
<li>
<span class="anticon anticon-angle-circleo-right"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-circleo-right</span>
</li>
<li>
<span class="anticon anticon-angle-circleo-left"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-circleo-left</span>
</li>
<li>
<span class="anticon anticon-angle-double-right"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-double-right</span>
</li>
<li>
<span class="anticon anticon-angle-double-left"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-double-left</span>
</li>
<li>
<span class="anticon anticon-angle-verticle-right"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-verticle-right</span>
</li>
<li>
<span class="anticon anticon-angle-verticle-left"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">angle-verticle-left</span>
</li>
<li>
<span class="anticon anticon-forward"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">forward</span>
</li>
<li>
<span class="anticon anticon-backward"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">backward</span>
</li>
<li>
<span class="anticon anticon-rollback"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">rollback</span>
</li>
<li>
<span class="anticon anticon-retweet"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">retweet</span>
</li>
</ul>
2015-06-08 22:42:36 +08:00
### 二. 提示建议性图标
<ul class="anticons-list fn-clear">
<li>
<span class="anticon anticon-question"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">question</span>
</li>
<li>
<span class="anticon anticon-question-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">question-circle</span>
</li>
<li>
<span class="anticon anticon-question-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">question-circleo</span>
</li>
<li>
<span class="anticon anticon-plus"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">plus</span>
</li>
<li>
<span class="anticon anticon-plus-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">plus-circle</span>
</li>
<li>
<span class="anticon anticon-plus-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">plus-circleo</span>
</li>
<li>
<span class="anticon anticon-pause"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">pause</span>
</li>
<li>
<span class="anticon anticon-pause-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">pause-circle</span>
</li>
<li>
<span class="anticon anticon-pause-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">pause-circleo</span>
</li>
<li>
<span class="anticon anticon-minus"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">minus</span>
</li>
<li>
<span class="anticon anticon-minus-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">minus-circle</span>
</li>
<li>
<span class="anticon anticon-minus-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">minus-circleo</span>
</li>
<li>
<span class="anticon anticon-info-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">info-circle</span>
</li>
<li>
<span class="anticon anticon-info-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">info-circleo</span>
</li>
<li>
<span class="anticon anticon-info"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">info</span>
</li>
<li>
<span class="anticon anticon-exclamation"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">exclamation</span>
</li>
<li>
<span class="anticon anticon-exclamation-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">exclamation-circle</span>
</li>
<li>
<span class="anticon anticon-exclamation-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">exclamation-circleo</span>
</li>
<li>
<span class="anticon anticon-cross-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">cross-circleo</span>
</li>
<li>
<span class="anticon anticon-cross-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">cross-circle</span>
</li>
<li>
<span class="anticon anticon-cross"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">cross</span>
</li>
<li>
<span class="anticon anticon-check-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">check-circleo</span>
</li>
<li>
<span class="anticon anticon-check-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">check-circle</span>
</li>
<li>
<span class="anticon anticon-check"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">check</span>
</li>
<li>
<span class="anticon anticon-clock-circle"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">clock-circle</span>
</li>
<li>
<span class="anticon anticon-clock-circleo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">clock-circleo</span>
</li>
</ul>
2015-06-08 22:42:36 +08:00
### 三. 网站通用图标
<ul class="anticons-list fn-clear">
<li>
<span class="anticon anticon-lock"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">lock</span>
</li>
<li>
<span class="anticon anticon-android"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">android</span>
</li>
<li>
<span class="anticon anticon-apple"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">apple</span>
</li>
<li>
<span class="anticon anticon-area-chart"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">area-chart</span>
</li>
<li>
<span class="anticon anticon-bar-chart"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">bar-chart</span>
</li>
<li>
<span class="anticon anticon-bars"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">bars</span>
</li>
<li>
<span class="anticon anticon-booko"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">booko</span>
</li>
<li>
<span class="anticon anticon-calendar"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">calendar</span>
</li>
<li>
<span class="anticon anticon-cloud"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">cloud</span>
</li>
<li>
<span class="anticon anticon-cloud-download"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">cloud-download</span>
</li>
<li>
<span class="anticon anticon-code"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">code</span>
</li>
<li>
<span class="anticon anticon-copy"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">copy</span>
</li>
<li>
<span class="anticon anticon-credit-card"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">credit-card</span>
</li>
<li>
<span class="anticon anticon-delete"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">delete</span>
</li>
<li>
<span class="anticon anticon-desktop"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">desktop</span>
</li>
<li>
<span class="anticon anticon-download-line"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">download-line</span>
</li>
<li>
<span class="anticon anticon-edit"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">edit</span>
</li>
<li>
<span class="anticon anticon-ellipsis"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">ellipsis</span>
</li>
<li>
<span class="anticon anticon-environment"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">environment</span>
</li>
<li>
<span class="anticon anticon-fileo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">fileo</span>
</li>
<li>
<span class="anticon anticon-file-texto"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">file-texto</span>
</li>
<li>
<span class="anticon anticon-foldero"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">foldero</span>
</li>
<li>
<span class="anticon anticon-folder-openo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">folder-openo</span>
</li>
<li>
<span class="anticon anticon-github"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">github</span>
</li>
<li>
<span class="anticon anticon-hddo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">hddo</span>
</li>
<li>
<span class="anticon anticon-frown"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">frown</span>
</li>
<li>
<span class="anticon anticon-meho"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">meho</span>
</li>
<li>
<span class="anticon anticon-inbox"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">inbox</span>
</li>
<li>
<span class="anticon anticon-laptop"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">laptop</span>
</li>
<li>
<span class="anticon anticon-large"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">large</span>
</li>
<li>
<span class="anticon anticon-line-chart"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">line-chart</span>
</li>
<li>
<span class="anticon anticon-link"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">link</span>
</li>
<li>
<span class="anticon anticon-lock1"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">lock1</span>
</li>
<li>
<span class="anticon anticon-logout"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">logout</span>
</li>
<li>
<span class="anticon anticon-mail"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">mail</span>
</li>
<li>
<span class="anticon anticon-menu-fold"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">menu-fold</span>
</li>
<li>
<span class="anticon anticon-menu-unfold"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">menu-unfold</span>
</li>
<li>
<span class="anticon anticon-mobile"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">mobile</span>
</li>
<li>
<span class="anticon anticon-notification"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">notification</span>
</li>
<li>
<span class="anticon anticon-paper-clip"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">paper-clip</span>
</li>
<li>
2015-06-07 14:01:59 +08:00
<span class="anticon anticon-pictureo"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">pictureo</span>
</li>
<li>
<span class="anticon anticon-pie-chart"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">pie-chart</span>
</li>
<li>
<span class="anticon anticon-poweroff"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">poweroff</span>
</li>
<li>
<span class="anticon anticon-reload"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">reload</span>
</li>
<li>
<span class="anticon anticon-search"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">search</span>
</li>
<li>
<span class="anticon anticon-setting"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">setting</span>
</li>
<li>
<span class="anticon anticon-share-alt"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">share-alt</span>
</li>
<li>
<span class="anticon anticon-shopping-cart"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">shopping-cart</span>
</li>
<li>
<span class="anticon anticon-smile"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">smile</span>
</li>
<li>
<span class="anticon anticon-tablet"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">tablet</span>
</li>
<li>
<span class="anticon anticon-tag"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">tag</span>
</li>
<li>
<span class="anticon anticon-tags"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">tags</span>
</li>
<li>
<span class="anticon anticon-totop"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">totop</span>
</li>
<li>
<span class="anticon anticon-unlock"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">unlock</span>
</li>
<li>
<span class="anticon anticon-upload"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">upload</span>
</li>
<li>
<span class="anticon anticon-user"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">user</span>
</li>
<li>
<span class="anticon anticon-video-camera"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">video-camera</span>
</li>
<li>
<span class="anticon anticon-windows"></span>
2015-06-08 12:41:37 +08:00
<span class="anticon-class">windows</span>
</li>
2015-06-08 16:13:50 +08:00
<li>
<span class="anticon anticon-loading"></span>
<span class="anticon-class">loading</span>
</li>
</ul>
<style>
2015-06-07 17:18:14 +08:00
ul.anticons-list {
margin: 20px 0;
list-style: none;
width: 100%
}
2015-06-08 12:39:35 +08:00
ul.anticons-list li {
2015-06-07 17:18:14 +08:00
float: left;
2015-06-08 22:42:36 +08:00
margin: 10px 5px;
2015-06-07 17:18:14 +08:00
padding-bottom: 10px;
2015-06-08 22:42:36 +08:00
width: 150px;
height: 120px;
2015-06-07 17:18:14 +08:00
text-align: center;
list-style: none;
cursor: pointer;
2015-06-08 12:39:35 +08:00
height: 92px;
color: #5C6B77;
2015-06-08 12:41:37 +08:00
transition: all 0.2s ease;
2015-06-07 17:18:14 +08:00
}
ul.anticons-list li:hover {
2015-06-08 22:42:36 +08:00
background-color: #4BB8FF;
2015-06-08 12:39:35 +08:00
color: #fff;
2015-06-07 17:18:14 +08:00
border-radius: 4px;
}
.anticon {
2015-06-08 22:42:36 +08:00
font-size: 24px;
margin: 18px 0 16px;
2015-06-07 17:18:14 +08:00
}
.anticon-class {
display: block;
text-align: center;
word-wrap: break-word;
transform: scale(0.85);
font-family: Consolas;
}
</style>