<svg>
<use xlink:href="./assets/outer.svg#svgid"/>
</svg>
href中为外部svg路径
#后面跟svg中图形的id,可以在外部文件svg标签上加id
outer.svg中,path或者是图形的stroke 和 fill都需要设置为currentColor,才能跟随父元素的color颜色改变
<svg>
<use xlink:href="./assets/outer.svg#svgid"/>
</svg>
href中为外部svg路径
#后面跟svg中图形的id,可以在外部文件svg标签上加id
outer.svg中,path或者是图形的stroke 和 fill都需要设置为currentColor,才能跟随父元素的color颜色改变