如何将svg代码另存为.svg图像? [英] How can I save svg code as a .svg image?
本文介绍了如何将svg代码另存为.svg图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将以下svg代码另存为.svg图像
How could I save the following svg code as .svg image
<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="fill" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:rgb(224,224,224);stop-opacity:1"/>
<stop offset="100%" style="stop-color:rgb(153,153,153);stop-opacity:1"/>
</linearGradient>
</defs>
<path d="M 0 0 L 64 0 L 32 64 z" stroke="colourname" fill="url(#fill)"/>
</svg>
任何帮助将不胜感激.谢谢.
Any help would be appreciated. Thanks.
推荐答案
只需将其保存在文本文件中,并为其提供.svg扩展名即可.
Just had to save it in a text file and give it a .svg extension.
这篇关于如何将svg代码另存为.svg图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文