img src SVG changing the styles with CSS

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

html

\"Logo\"

css

.logo-img path {
           


        
22条回答
  •  不要未来只要你来
    2020-11-22 01:49

    If your goal is just to change the color of the logo, and you don't necessarily NEED to use CSS, then don't use javascript or jquery as was suggested by some previous answers.

    To precisely answer the original question, just:

    1. Open your logo.svg in a text editor.

    2. look for fill: #fff and replace it with fill: #000

    For example, your logo.svg might look like this when opened in a text editor:

    
      
      
    
    

    ... just change the fill and save.

提交回复
热议问题