在小程序中引入字体图标要比web麻烦一些,简单说需要三步:

  1. 下载iconfont,把iconfont.css复制到iconfont.wxss,在app.wxss中引入

  2. 查看iconfont在unicode模式下的在线链接,替换iconfont.wxss中的链接为远程链接


小程序中如何使用iconfont

3. 在wxml文件中引入对应的icon class

<icon class="iconfont icon-pay"></icon>

 

相关文章:

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