svg can not modify the color solution

When customizing an svg component today, I found that the color of the svg could not be modified through css anyway: it
Insert picture description here
was later discovered that it was because of the fill=xxx code in the svg file
Insert picture description here

Solution:

Find the corresponding svg file, delete this code:
Insert picture description here
save, you can modify the color:
Insert picture description here

Guess you like

Origin blog.csdn.net/dyw3390199/article/details/114395590
Recommended