【发布时间】:2014-02-07 21:59:57
【问题描述】:
我需要在 svg <image> 元素上设置“xlink:href”属性,描述为here。
我可以用 CSS 做到这一点吗?
【问题讨论】:
-
不,不能使用 CSS 设置属性。
-
这是您可以在 svg 中使用 CSS 设置样式的属性列表。 w3.org/TR/SVG/styling.html
我需要在 svg <image> 元素上设置“xlink:href”属性,描述为here。
我可以用 CSS 做到这一点吗?
【问题讨论】:
不,因为xlink:href 不是 CSS 属性。请参阅 SVG 1.1 中所需的 list of css properties。
【讨论】: