img Inside a foreignObject Inside an svg Inside an img

后端 未结 2 1806
后悔当初
后悔当初 2020-12-19 19:27

Here is my test case.

http://tobeythorn.com/isi/dummy2.svg

http://tobeythorn.com/isi/isitest.html

  • If I just open the svg by itself, the inne

2条回答
  •  猫巷女王i
    2020-12-19 19:59

    All SVGs used as images must be complete in a single file. Images cannot load external data.

    So you need to base64 encode the image and embed it into the SVG as a data URL to get it to work.

提交回复
热议问题