我正在尝试在使用 Django 模板构建的网页上显示 SVG 图像。
If I simply put
<figure>
<embed type="image/svg+xml" src="test.svg" width="75%" height="75%"/>
</figure>
在HTML文件中,SVG文件将被渲染(由Chrome完成)。
But if I try to do the same thing in a django template it does not work. I have also tried using
<iframe src="bar_chart.svg" width="200" height="200" ></iframe>
还有其他几种变体。
Django中最好的显示SVG图像的方法是什么?
<img src=....>
标签了吗? - undefined