如何使用可视化工具编辑 xml svg?有什么在线工具吗?
我有从某处复制的 xml 格式的 svg:
data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E
我想把它的颜色改成黑色或其他颜色。
.item>a::after {
content: "";
display: block;
width: 20px;
height: 20px;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
background-repeat: no-repeat;
background-position: center;
margin-top: -2.5px;
top: 22.5px;
border: 1px solid #000;
}
<ul>
<li class="item"><a href="#" class="item">One</a></li>
</ul>
有什么想法吗?
最佳答案
将其粘贴到名为 something.svg 的文本文件中,然后在 Adobe Illustrator 中打开该文件。 或者您可以将 svg 转换为 jpg/png 并在 photoshop 中进行编辑。 convert here
关于CSS SVG+XML - 如何编辑?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45459590/