tianyou-songshao

1)首先,登录阿里巴巴iconfont.cn

2)新建项目

3)点击icon收藏

4)加入到test项目中

 

5)下载到本地解压

 

6)生成代码

 

7)复制iconfont.css到xxx.wxss

 

8)替换iconfont.css中的@font-face为上面的生成代码

9)xxx.wxss样式中@import使用

@import "../../../css/test.wxss";

10)wxml中使用

<text class=\'iconfont icon-home\' style=\'color:#7F8389;font-size:60rpx;\'></text>

显示结果

 

 

分类:

技术点:

相关文章:

  • 2021-08-13
  • 2021-09-18
  • 2021-12-31
  • 2021-05-01
  • 2021-07-06
  • 2021-12-31
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2021-11-27
  • 2021-12-31
  • 2021-10-21
  • 2021-08-17
  • 2021-05-01
  • 2021-12-31
  • 2021-04-05
相关资源
相似解决方案