更改通过背景图像加载的SVG图像的填充颜色 [英] Change fill color of SVG image loaded via background-image

查看:1811
本文介绍了更改通过背景图像加载的SVG图像的填充颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我通过css background-image像这样加载SVG图片:

If I load SVG image via css background-image like this:

.icon {
  background-image: url('icon.svg');
}

如何更改图标或整个图标本身的填充颜色?

How can i change fill color of shapes inside that icon or whole icon itself?

感谢。

推荐答案

在XML编辑器中编辑你知道颜色值,只是改变它。

Edit it in an XML editor and if you know the color values, just change it.

或者,您可以转到 此链接 并进行修改。

Or, you can go to THIS LINK and make your edit.

希望这有助于。

这篇关于更改通过背景图像加载的SVG图像的填充颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆