使用本地资源的 SVG <image> 元素的语法

use*_*232 6 resources svg image local

C:\image.png将 SVG-image-element 与本地源(例如)和互联网上的源(例如)一起使用时,语法是否存在差异http://www.google.de/intl/de_ALL/images/logos/images_logo_lg.gif

我的问题是以下工作有效:

<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>
Run Code Online (Sandbox Code Playgroud)

通过以下内容,我只是得到一个白页:

<image x="100" y="100" width="100" height="100" href="C:\google.png"></image>
Run Code Online (Sandbox Code Playgroud)

use*_*232 6

解决了问题...:

<image x="100" y="100" width="100" height="100" xlink:href="file://C:\google.png"></image>
Run Code Online (Sandbox Code Playgroud)

谢谢你!


sku*_*ukt 4

你有没有尝试过"file:///c:/google.png"