两个问题 第一 我想让圆形内的对号变成黑色 可以实现吗?
第二: 我的对号怎么就是这样的 好丑啊 文档上的就很好看 我新建个demo 用了下文档上的代码 就是官网上的那样好看的 同样的代码放在正在开发的项目上 就很丑 我觉得差别在于是不是用了weui 求证 怎么破?
小程序原生组件icon怎么改变里面图标的颜色?How to change the color of the icon in the small program's native component icon
小程序原生组件icon怎么改变里面图标的颜色?两个问题 第一 我想让圆形内的对号变成黑色 可以实现吗?
第二: 我的对号怎么就是这样的 好丑啊 文档上的就很好看 我新建个demo 用了下文档上的代码 就是官网上的那样好看的 同样的代码放在正在开发的项目上 就很丑 我觉得差别在于是不是用了weui 求证 怎么破?
Two questions. First, can I make the check mark in the circle black? Second: how can my check mark look so ugly? The document is very beautiful. I used the code on the document to create a new demo. The code on the document is as good-looking as that on the official website. The same code is ugly on the project under development. I think the difference lies in whether we use the weui to verify it?
回答:
第一个图片是我在项目里写的样式 后面是他官网上的 对号的样子不一样啊
第一 : 设置color 属性可以改变图上这个图标的背景色,但无法改变对号的颜色
第二: 可以自定义 iconfont 使用
加个黑色背景试试,不知道对号部分是不是透明的