css - 设置 xlink :href attribute of an svg <image> element with CSS

标签 css image svg href xlink

我需要在 svg 上设置 'xlink:href' 属性 <image>元素,描述 here .

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

最佳答案

不,因为 xlink:href 不是 CSS 属性。查看list of css properties SVG 1.1 要求。

关于css - 设置 xlink :href attribute of an svg <image> element with CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21205096/

相关文章:

css - Bootstrap v2.1.1 - 没有谷歌地图

javascript - 处置图像对象

image - 在 TypeScript 中设置图像源

javascript - 创建可以覆盖图像的倒圆 Angular 箭头

javascript - 在调整窗口大小时右对齐

html - 如何在 HTML 中使表中的 <tr> 透明?

html - 伪元素 background-image 不起作用

AndroidResultContracts.TakePicture() 返回 bool 值而不是位图

javascript - 使用投影线绘制简单图形

css - 显示保持原始字体大小的 SVG