Do I use , <>, >

后端 未结 15 1885
借酒劲吻你
借酒劲吻你 2020-11-22 06:10

Should I use , , or for loading SVG files into a page in a way similar to loading a jpg
15条回答
  •  -上瘾入骨i
    2020-11-22 06:48

    Found one solution with pure CSS and without double image downloading. It is not beautiful as I want, but it works.

    
    
      
        HTML5 SVG demo
        
      
    
    
        
    
    
    
    
      
         
         
             

    The idea is to insert special SVG with fallback style.

    More details and testing process you can find in my blog.

提交回复
热议问题