首先在阿里iconfont中将自己喜欢的图标放到自己的项目中

uni-app添加阿里iconfont

然后点击下载到本地文件

将本地文件中的uni-app添加阿里iconfont这些文件复制到uniapp项目中,在main.js中导入

import "./static/css/iconfont/iconfont.css" //路径为自己放置的路径

在页面中就可以使用了

<span class="icon iconfont">&#xe944;</span>

查看图标点击项目中的unicode,然后复制图标代码,替换span的内容就可以了

 

相关文章:

  • 2021-04-29
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2021-12-13
  • 2021-11-19
猜你喜欢
  • 2021-04-11
  • 2022-12-23
  • 2021-11-26
  • 2021-11-26
  • 2021-07-19
  • 2021-05-12
相关资源
相似解决方案