img src SVG changing the styles with CSS

后端 未结 22 2001
予麋鹿
予麋鹿 2020-11-22 01:16

html

\"Logo\"

css

.logo-img path {
           


        
22条回答
  •  难免孤独
    2020-11-22 01:57

    Simple..

    You can use this code:

    
    

    First specify the path of svg and then write it's ID, In this case "Capa_1". You can get the ID of svg by opening it in any editor.

    In css:

    .logo {
      fill: red;
    }
    

提交回复
热议问题