CSS SVG + XML - 如何编辑?

时间:2017-08-02 11:27:49

标签: css xml svg

如何使用可视化工具编辑xml svg?那里有在线工具吗?

我有xg格式的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>
&#13;
&#13;
&#13;

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

将其粘贴到名为something.svg的文本文件中,然后在Adobe Illustrator中打开该文件。 或者你可以将svg转换为jpg / png并在photoshop中编辑它。 convert here