小程序中字体图标引入

http://fontello.com/

下载fontello文件(放到小程序项目目录)

新建wxss空文件夹,把css文件内容复制导入wxss(路径要改对)

在要引入的页面wxss文件@import “导入的wxss文件”

在wxml页面使用方法

<i class="icon-wechat" style="font-size:32px">微信</i>

(日常记录)

原文地址:https://www.cnblogs.com/wmh33/p/13652702.html