मैं एक सर्कल बनाना चाहता हूं जिसमें एक छवि है, मैंने पहले से ही pattern
या filter
का उपयोग करने का प्रयास किया है, लेकिन उनमें से कोई भी मुझे अपेक्षित परिणाम नहीं देता है। नीचे दिए गए कोड है:सर्कल के अंदर एसवीजी छवि
<svg id="graph" width="100%" height="400px">
<!-- filter -->
<filter id = "born1" x = "0%" y = "0%" width = "100%" height = "100%">
<feImage xlink:href = "https://cdn3.iconfinder.com/data/icons/people-professions/512/Baby-512.png"/>
</filter>
<circle id = "born" class = "medium" cx = "5%" cy = "20%" r = "5%" fill = "white" stroke = "lightblue" stroke-width = "0.5%" filter = "url(#born1)"/>
<!-- pattern -->
<defs>
<pattern id="image" x="0" y="0" height="100%" width="100%">
<image x="0" y="0" xlink:href="https://cdn3.iconfinder.com/data/icons/people-professions/512/Baby-512.png"></image>
</pattern>
</defs>
<circle id = "sd" class = "medium" cx = "5%" cy = "40%" r = "5%" fill = "white" stroke = "lightblue" stroke-width = "0.5%" fill="url(#image)"/>
</svg>
मेरा लक्ष्य चक्र को बनाए रखने और इसके अंदर सीएसएस attr background-image
की तरह कुछ पृष्ठभूमि छवि देने के लिए, के लिए है।
मेरा अपनी छवि यूआरएल बदलने, यह काम नहीं करता बनाते हैं .. किसी भी विचार? –