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

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

I have the following code:

  
     

        
相关标签:
8条回答
  • 2020-11-28 21:30

    you put this css for svg circle.

    svg:hover circle{
        fill: #F6831D;
        stroke-dashoffset: 0;
        stroke-dasharray: 700;
        stroke-width: 2;
    }
    
    0 讨论(0)
  • 2020-11-28 21:33

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

    path:hover{
      fill:red;
    }
    
    0 讨论(0)
提交回复
热议问题