将SVG-image-element与本地源(例如C:\image.png
)和Internet上的源(例如http://www.google.de/intl/de_ALL/images/logos/images_logo_lg.gif
)一起使用时,语法有差异吗?使用本地资源的SVG <image>元素的语法
我的问题是,下面的工作:
<image x="100" y="100" width="100" height="100" xlink:href="http://www.google.de/intl/de_ALL/images/logos/images_logo_lg.gif">
</image>
,并与下面的,我只是得到一个白色的页面:
<image x="100" y="100" width="100" height="100" href="C:\google.png"></image>
我尝试: “<图像x =” 100" y = “100” 宽度= “100” HEIGHT = “100” HREF = “文件:/// C:\ google.png”>“ 但仍然不起作用! – user1665232
您可能需要用正斜杠替换反斜杠:'“file:// C:/ Documents and Settings/Benjbra/workspace/PythTest/google.png”'。有关更多信息,请参见http://en.wikipedia.org/wiki/File_URI_scheme#Windows_2。 – skunkfrukt