Fork me on GitHub

引入阿里巴巴图标库 iconfont

官网:iconfont.cn

1.选图标,添加到自己的项目

2.选 font class 类别,下载,这个类别简洁易用

 

3.拷贝5个文件到assets目录,其他目录也行

4.main.js引入

5.使用

    两个方法 

1)i标签、span标签等

<i class="iconfont icon-qunzu"></i>

2)直接用class

<el-button type="primary" class="iconfont icon-qunzu" @click="openChatWindowAdd"> 
</el-button>

 


文章就分享到这,欢迎关注“前端大神之路

posted @ 2020-12-24 14:55  广东靓仔-啊锋  阅读(425)  评论(0编辑  收藏  举报