[英]How to convert data:image/svg+xml;base64 data from natural image?
I have a blog in which I need to replace the background-image
of .svg-icon.googleplus
(line 725 of the stylesheet) . 我有一个博客 ,我需要在其中替换
.svg-icon.googleplus
的background-image
(样式表的第725行) 。
As of this point, it shows Google+ icon . 至此,它显示了Google+图标 。 I need to replace it with Google's original icon .
我需要用Google的原始图标替换它。 However I don't know how to convert the
data:image/svg+xml;base64
data from natural image. 但是我不知道如何从自然图像转换
data:image/svg+xml;base64
数据。
Any suggestions, kind folks? 有什么建议吗,好心的人?
You can use any kind of image in the background url(). 您可以在后台url()中使用任何类型的图像。 Does not need to be base64.
不需要是base64。 You could replace it with:
您可以将其替换为:
background-image: url('path/to/img/example.jpg');
background-image: url('path/to/img/example.gif');
background-image: url('path/to/img/example.png');
But if you still want to use Base64 you can use a program or a web service like this one: 但是,如果您仍然想使用Base64,则可以使用如下程序或Web服务:
https://www.base64-image.de/ https://www.base64-image.de/
Hope it helps 希望能帮助到你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.