IconFont 图标
-
会员#icon-wsmp-payuser
-
健康 水滴#icon-jiankangshuidi
-
报错#icon-iconbaocuo
-
225默认头像#icon-morentouxiang
-
accessory#icon-accessory
-
add#icon-add
-
addition_fill#icon-addition_fill
-
addition#icon-addition
-
addressbook_fill#icon-addressbook_fill
-
addressbook#icon-addressbook
-
browse_fill#icon-browse_fill
-
brush#icon-brush
-
brush_fill#icon-brush_fill
-
computer_fill#icon-computer_fill
-
computer#icon-computer
-
coordinates_fill#icon-coordinates_fill
-
coordinates#icon-coordinates
-
coupons_fill#icon-coupons_fill
-
customerservice_fill#icon-customerservice_fill
-
customerservice#icon-customerservice
-
document#icon-document
-
document_fill#icon-document_fill
-
dynamic_fill#icon-dynamic_fill
-
editor#icon-editor
-
emoji#icon-emoji
-
enter#icon-enter
-
flag_fill#icon-flag_fill
-
flag#icon-flag
-
group_fill#icon-group_fill
-
headlines_fill#icon-headlines_fill
-
homepage_fill#icon-homepage_fill
-
homepage#icon-homepage
-
interactive_fill#icon-interactive_fill
-
interactive#icon-interactive
-
label#icon-label
-
like_fill#icon-like_fill
-
like#icon-like
-
lock#icon-lock
-
mail#icon-mail
-
manage#icon-manage
-
message#icon-message
-
mine_fill#icon-mine_fill
-
mobilephone_fill#icon-mobilephone_fill
-
mobilephone#icon-mobilephone
-
offline_fill#icon-offline_fill
-
offline#icon-offline
-
order_fill#icon-order_fill
-
other#icon-other
-
picture_fill#icon-picture_fill
-
prompt_fill#icon-prompt_fill
-
qrcode_fill#icon-qrcode_fill
-
remind_fill#icon-remind_fill
-
remind#icon-remind
-
return#icon-return
-
service_fill#icon-service_fill
-
service#icon-service
-
setup_fill#icon-setup_fill
-
setup#icon-setup
-
smallscreen#icon-smallscreen
-
success_fill#icon-success_fill
-
success#icon-success
-
time_fill#icon-time_fill
-
trash#icon-trash
-
trash_fill#icon-trash_fill
-
undo#icon-undo
-
workbench_fill#icon-workbench_fill
-
导入#icon-daoru
-
search#icon-search
-
packup#icon-packup
-
unfold#icon-unfold
-
wangwang_fill#icon-wangwang
-
验证码#icon-yanzhengma
-
报错-插画#icon-baocuo-chahua
-
朋友#icon-pengyou
-
所有#icon-suoyou
-
会员#icon-huiyuan
-
会员#icon-huiyuan1
-
空页面#icon-kongyemian
-
logout#icon-logout
-
cloud upload-o#icon-cloudupload-o
symbol引用
这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 这种用法其实是做了一个svg的集合,与另外两种相比具有如下特点:
- 支持多色图标了,不再受单色限制。
- 通过一些技巧,支持像字体那样,通过
font-size
,color
来调整样式。 - 兼容性较差,支持 ie9+,及现代浏览器。
- 浏览器渲染svg的性能一般,还不如png。
使用步骤如下:
第一步:引入项目下面生成的symbol代码:
<script src="./iconfont.js"></script>
第二步:加入通用css代码(引入一次就行):
<style type="text/css">
.icon {
width: 1em; height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>
第三步:挑选相应图标并获取类名,应用于页面:
<svg class="icon" aria-hidden="true">
<use xlink:href="#icon-xxx"></use>
</svg>