uniapp怎么更改图标颜色
时间:2022-02-23 17:49
uniapp更改图标颜色的方法:首先在项目中引入iconfont.js;然后通过“”方式设置颜色;最后修改图标大小即可。 本教程操作环境:windows7系统、uni-app2.5.1版本,Dell G3电脑。 推荐(免费):uni-app教程 引入彩色图标 1.项目中引入iconfont.js 2.使用 3.修改大小 以上就是uniapp怎么更改图标颜色的详细内容,更多请关注gxlsystem.com其它相关文章!// main.js
import './assets/iconfont.js'
<svg class="icon" aria-hidden="true">
<use xlink:href="#qc-icecream"></use>
</svg>
.icon {
width: 1em; height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}