📜  设置 svg 背景颜色 css 代码示例

📅  最后修改于: 2022-03-11 14:47:49.136000             🧑  作者: Mango

代码示例1
/* You can use CSS masks, With the 'mask' property, you create a mask that is applied to an element. */
background-color: red;
-webkit-mask-image: url(icon.svg);
mask-image: url(icon.svg);