Can I change the fill color of an svg path with CSS?

后端 未结 8 1697
抹茶落季
抹茶落季 2020-11-28 21:09

I have the following code:

  
     

        
8条回答
  •  没有蜡笔的小新
    2020-11-28 21:27

    You can use this syntax but it will require some changes in the SVG file. And remove any fill/stroke from the SVG itself.

    icon.svg

    
    
    
      
      
    
    

    icon.html

    
    

提交回复
热议问题