SVG image inside circle

后端 未结 3 1630
星月不相逢
星月不相逢 2020-11-30 11:30

I want to create a circle which contains an image, I already tried using pattern or filter but none of them give me the expected result. Below is t

3条回答
  •  感动是毒
    2020-11-30 12:03

    A pattern will work. You just have to give the a size. Unlike HTML, SVG images default to width and height of zero.

    Also, if you want the image to scale with the circle, then you should specify a viewBox for the pattern.

    
    
      
      
        
          
        
      
        
      
    

提交回复
热议问题