我需要在 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/