我正在尝试将图像显示在我的.svg文件中。它目前将在Chrome上显示,但不会显示在Firefox和Adobe Illustrator上。我在网上看了很多,还没有找到解决我问题的方法。有什么建议?
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" height="963" width="744" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" >
<image xlink:href="images/image.png" height="45" y="10" x="662" />
</svg>
答案 0 :(得分:1)
您需要提供图像元素的高度和宽度属性。这些在SVG 1.1中是强制性的。
SVG 2建议高度和宽度成为可选项,但该规范仍在进行中,因为它的实现。 Firefox和Illustrator虽然实现了其他功能,但尚未实现该SVG 2功能。