在svg标签中定义一个class类,在class中添加fill:currentColor,然后添加color:red,就可以修改svg图标的颜色了 例子: .svg{ fill:currentColor; color:red; }