1. 全局安装iconfont 的字体文件包iconfont-tools(npm i -g iconfont-tools)
2. 在阿里巴巴矢量图标库中,将要使用的彩色图标添加至购物车,然后下载代码
如何在小程序中使用彩色的iconfont
如何在小程序中使用彩色的iconfont
3. 在命令行工具中打开下载的图标文件: 运行iconfont-tools
生成 iconfont-weapp文件
如何在小程序中使用彩色的iconfont
如何在小程序中使用彩色的iconfont
4. 将 iconfont-weapp 文件复制到项目里面如何在小程序中使用彩色的iconfont
5. 在项目中通过class引用来使用:
class=“t-icon t-icon-dizhi”
如何在小程序中使用彩色的iconfont

相关文章:

  • 2021-09-08
  • 2021-09-11
  • 2021-09-14
  • 2021-10-12
  • 2021-12-22
  • 2021-12-31
  • 2021-04-13
  • 2021-05-26
猜你喜欢
  • 2021-04-19
  • 2021-12-31
  • 2021-08-29
  • 2022-12-23
  • 2021-11-29
  • 2021-12-31
  • 2021-12-26
相关资源
相似解决方案