CSS - Style svg fill with class name

后端 未结 2 1720
旧巷少年郎
旧巷少年郎 2021-01-21 13:37

I have a jsfiddle here - http://jsfiddle.net/morettmt/v7mx737w/2/

I can chnage the fill color by styling the grouping

Is there a way to add my own class to the s

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-21 14:12

    If you want to have the class in the SVG you'll have to do something like this

    .play-triangle>g {
      fill: red;
    }
    
      
        
          
        
      
    

提交回复
热议问题