Syntax for SVG element using a local resource

后端 未结 4 1857
长发绾君心
长发绾君心 2021-01-19 19:59

Is there a difference in the syntax when using the SVG-image-element with a local source (e.g. C:\\image.png) and a source on the internet (e.g http://www

相关标签:
4条回答
  • 2021-01-19 20:07

    Solved the problem...:

    <image x="100" y="100" width="100" height="100" xlink:href="file://C:\google.png"></image>
    

    Thank you!

    0 讨论(0)
  • 2021-01-19 20:07

    I think you should try use the file:// protocol

    Take the remote page and do a save page as on chrome and see what manipulation he do to the image tag.

    0 讨论(0)
  • 2021-01-19 20:08

    The path you should use for macOS is:

    file:///Users/aizat/.../image.png

    0 讨论(0)
  • 2021-01-19 20:20

    Have you tried "file:///c:/google.png"?

    0 讨论(0)
提交回复
热议问题