# 在 Inkscape 和 Photoshop 中制作的图标无法通过 CSS 更改颜色

**URL:** <https://meta.discourse.org/t/icons-made-in-inkscape-and-photoshop-do-not-have-colors-changed-via-css/267408>\
**Category:** Development\
**Created:** [2023 年6 月 6 日 15:20 UTC](https://meta.discourse.org/t/icons-made-in-inkscape-and-photoshop-do-not-have-colors-changed-via-css/267408 "2023-06-06T15:20:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
发布日期： [2023 年6 月 6 日 16:32 UTC](https://meta.discourse.org/t/icons-made-in-inkscape-and-photoshop-do-not-have-colors-changed-via-css/267408/2 "2023-06-06T16:32:04Z")

</div>

您的电视图标是嵌入式 PNG（`xlink:href="data:img/png..."`），而不是真正的 SVG。

您需要一个带有合适矢量路径的 SVG，以便浏览器可以应用填充颜色。

---

_[View the full topic](https://meta.discourse.org/t/icons-made-in-inkscape-and-photoshop-do-not-have-colors-changed-via-css/267408)._
