我使用jQuery控制铬SVG文件,为什么<image>标签被改变的jQuery <img>标签,在Chrome
$('svg #lotsofimage').append("<image xlink:href='" + conf[thing].base + "' width= '" + conf[thing].width + "px' height= '" + conf[thing].height + "px' x='" + thing_x + "pt' y='" + thing_y + "pt' ></image>");
,但我打开的开发工具,它显示如下:
<img xlink:href="xxxx" width="xxxx">
<image></image>was instead of <img />
如何处理?
好吧,所以我检查了。没有''标签。你要做什么? –
Fresheyeball
@Fresheyeball:'image'是SVG的一部分。 – icktoofay
@icktoofay哦对。感谢您澄清 – Fresheyeball