查到的资料说,img 标签嵌入的 svg ,是无法加载任何外部资源的
包含 svg 文件里引用的 image 、font 等
请看这个链接
https://vecta.io/blog/best-way-to-embed-svg
This is mainly because images with <img> tags are not allowed to refer to external resources including CSS, fonts and scripts, for security reasons.
但是我目前还没查到官方的文档说明 |