【问题标题】:Set the xlink:href attribute of an svg <image> element with CSS使用 CSS 设置 svg <image> 元素的 xlink:href 属性
【发布时间】:2014-02-07 21:59:57
【问题描述】:

我需要在 svg &lt;image&gt; 元素上设置“xlink:href”属性,描述为here。

我可以用 CSS 做到这一点吗?

【问题讨论】:

  • 不,不能使用 CSS 设置属性。
  • 这是您可以在 svg 中使用 CSS 设置样式的属性列表。 w3.org/TR/SVG/styling.html

标签: css image svg href xlink


【解决方案1】:

不,因为xlink:href 不是 CSS 属性。请参阅 SVG 1.1 中所需的 list of css properties。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-09-07
    • 2015-01-28
    • 1970-01-01
    • 1970-01-01
    • 2018-10-04
    • 1970-01-01
    • 2013-11-10
    相关资源
    最近更新 更多