【问题标题】:How to display a SVG in Visual Studio design?如何在 Visual Studio 设计中显示 SVG?
【发布时间】:2021-05-25 11:06:49
【问题描述】:

我有一个 SVG 图像,我想在设计中显示它。我使用 Visual Studio Community 2019。我尝试使用 <asp:Image/> 控件。使用此控件,我可以调整 SVG 的大小,但不显示图像。我应该怎么做才能在设计中展示它?

提前非常感谢!

【问题讨论】:

  • 在哪些浏览器中不显示?一些低级浏览器需要特定的内容类型来显示 SVG。
  • 在浏览器中显示。但是当我在 Visual Studio 中创建一个 ASPX 页面并且我想在设计中查看 SVG 图像时,它现在显示出来了。

标签: html css visual-studio svg visual-studio-2019


【解决方案1】:

它不是 Visual Studio 的原生设计器(即没有出现在设计器选项卡中),但我怀疑其中任何一个都会给你想要的结果..

  1. VS 扩展“Markdown 编辑器”

  2. VS 扩展“SVG 查看器”

【讨论】:

    猜你喜欢
    • 2014-06-04
    • 1970-01-01
    • 2017-07-17
    • 1970-01-01
    • 2015-04-06
    • 2021-09-07
    • 1970-01-01
    • 2021-09-10
    • 1970-01-01
    相关资源
    最近更新 更多