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

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

I have the following code:

  
     

        
8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 21:33

    if you want to change color by hovering in the element, try this:

    path:hover{
      fill:red;
    }
    

提交回复
热议问题