我有一张svg
图片,希望使用CSS的filter
属性来改变svg
的颜色。
body {
background-color: #dadada;
}
.custom-1 {
filter: invert(0.5);
}
<img src="https://image.flaticon.com/icons/svg/62/62945.svg" class="standard" width="50" height="50" alt="img">
<img src="https://image.flaticon.com/icons/svg/62/62945.svg" class="custom-1" width="50" height="50" alt="img">
我怎样才能让svg
图像变成白色?