Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个显示 SVG 的嵌入标签: <embed src="/img/mysvg.svg" style="max-width: 100%">
<embed src="/img/mysvg.svg" style="max-width: 100%">
它在控制台中导致错误:
当我注释掉嵌入标签时,错误就消失了。任何想法为什么会发生这种情况?
我认为这不应该是一个因素,但它也在 Laravel 项目的刀片中
除了 kwift.SAFARI.min.js:1 之外,我在 Safari 中遇到了同样的错误
为什么你使用 embed 标签,Chrome Dev 工具认为是错误的,实际上它在 HTML 中并没有错,但最好使用 img 标签
<img src="/img/mysvg.svg" style="max-width: 100%"/>