Add background image in SVG
问题 I need to add background image in svg. But I'm getting only black rectangle box, the image is not displaying. How to add the background image? This is my code: <style> path { fill: none; stroke: #000; stroke-width: 3px; stroke-linejoin: round; stroke-linecap: round; } </style> <svg width="1000" height="700"> <!-- <rect fill="#fff" width="100%" height="100%"></rect> --> <defs> <pattern id="img1" patternUnits="userSpaceOnUse" x="0" y="0" width="1000" height="700"> <image xlink:href="home/nayana