uni-app微信小程序使用iconfont支持颜色自定义

App.vue

<style lang="scss">
	/*每个页面公共css */
	@import './static/iconfont/iconfont.css';

	page {
		background-color: #F0F0F0;
	}
</style>

iconfont网址下载压缩包

在这里插入图片描述

iconfont.css

@font-face {
  font-family: "iconfont"; /* Project id 3804528 */
  src: url('~@/static/iconfont/iconfont.woff2?t=1670482354090') format('woff2'),
       url('~@/static/iconfont/iconfont.woff?t=1670482354090') format('woff'),
       url('~@/static/iconfont/iconfont.ttf?t=1670482354090') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-dianji:before {
  content: "\e603";
}

.icon-yiwenshuoming:before {
  content: "\e693";
}

.icon-lianjie:before {
  content: "\e602";
}

.icon-yewuziyuantuopu:before {
  content: "\ea6f";
}

.icon-nibianqi1:before {
  content: "\e608";
}

.icon-dianbiao1:before {
  content: "\e69e";
}

.icon-ditu2:before {
  content: "\e60a";
}

.icon-weixing:before {
  content: "\e606";
}

.icon-shuaxin:before {
  content: "\ec08";
}

.icon-lingdang:before {
  content: "\e8c0";
}

.icon-liebiao:before {
  content: "\e664";
}

.icon-liebiao1:before {
  content: "\e624";
}

.icon-nibianqi:before {
  content: "\e63c";
}

.icon-dianbiao:before {
  content: "\e636";
}

.icon-shishishuju:before {
  content: "\e61b";
}

.icon-history:before {
  content: "\e66d";
}

.icon-a-22jichushuju:before {
  content: "\e65d";
}

.icon-PC:before {
  content: "\e641";
}

.icon-delete:before {
  content: "\e615";
}

.icon-xiangxia:before {
  content: "\e684";
}

.icon-sharpicons_trees:before {
  content: "\e7b2";
}

.icon-chatou:before {
  content: "\e61a";
}

.icon-kuangshan:before {
  content: "\e628";
}

.icon-eryanghuatan:before {
  content: "\e661";
}

.icon-guangfu:before {
  content: "\e662";
}

.icon-xiangzuojiantou:before {
  content: "\e660";
}

.icon-xitongrizhi:before {
  content: "\e663";
}

.icon-weizhi:before {
  content: "\e60b";
}

.icon-filter:before {
  content: "\e686";
}

.icon-yunweiguanli:before {
  content: "\e63d";
}

.icon-lvzhou_gailan:before {
  content: "\e63b";
}

.icon-jiesuan:before {
  content: "\e63f";
}

.icon-wodedamaijihuo:before {
  content: "\e656";
}

.icon-shouye:before {
  content: "\e8c6";
}

.icon-qingchu:before {
  content: "\e713";
}

.icon-shenhezhong:before {
  content: "\e601";
}

.icon-weixin:before {
  content: "\e600";
}

.icon-shenfenzheng:before {
  content: "\e614";
}

.icon-24gf-portraitMaleInfo2:before {
  content: "\eb29";
}

.icon-xiangxiazhanhang:before {
  content: "\ec0b";
}

.icon-xiangshangzhanhang:before {
  content: "\ec0c";
}

.icon-xiangyoujiantou:before {
  content: "\e65f";
}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值