Safari embeded SVG doctype

后端 未结 3 562
别跟我提以往
别跟我提以往 2020-12-20 03:28

I have created a page that draws various SVG elements using the raphaeljs library, but I\'m having some issues in Safari.

I am drawing images and using a clipping p

3条回答
  •  天涯浪人
    2020-12-20 04:18

    You say that you want Safari to embed SVG properly. If by that you mean inline SVG, then know that Safari (as of v 5.0.5) can't do it. This, for example, is not supported:

    
    
        
            
        
        
            
                
            
        
    
    

    But if you mean embed SVG using an HTML element, then Safari can do this. Take the SVG code, put it in a file called "circle.svg" and then embed it using any of these three elements:

    
    
        
            
        
        
            
            
            
        
    
    

提交回复
热议问题