属性认识:
width:长度
height:高度
fill: 填充色
fill-opacity:填充的透明度
stroke:边框,即线条,设置其颜色
stroke-width:设置描边的宽度。注意,描边是以路径为中心线绘制的
stroke-opacity: 边框透明度
1. 允许前端更改颜色
编辑器打开.svg文件,删除所有fill属性
2. 加粗图案
设置描边,且不设置颜色,使其跟线条颜色一致
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/77b1dcc6f6d359db8e3749f74e86e2e5.png)
添加stroke-width、stroke属性,stroke的值设置为currentColor(适用于element框架)
参考链接