Why nest an <svg> element inside another <svg> element?

前端 未结 4 388
感情败类
感情败类 2020-12-28 13:25

Why would a demo such as this: http://jsbin.com/ejorus/2/edit, have an element nested inside another element?



        
4条回答
  •  孤城傲影
    2020-12-28 14:01

    You can define a new viewport & viewbox. With this option, you can use relative positions like as css. For more information, you can see this online article.

    
    
    
    
        Nested SVG
        
    
    
    
        
            
            
                
            
        
    
    
    

提交回复
热议问题