【问题标题】:Image is not displaying in IE图像在 IE 中不显示
【发布时间】:2018-10-12 03:49:27
【问题描述】:

我有一个使用 asp.net 管理的站点。我想在我的一个网页中显示一张图片,但该图片无法在 Internet Explorer 中查看,但其他浏览器可以显示它,尽管路径是正确的。

<asp:Image ID="PageImage" runat="server" ImageUrl ="~/images/PageImage.png" />

任何机构都可以帮助解决这个问题吗?

【问题讨论】:

  • 你试过绝对路径而不是相对路径吗?以 mysite.com/images/PageImage.png 为例

标签: html asp.net internet-explorer


【解决方案1】:

在创建图像时,请确保 didn't use CMYK 色彩空间, 其中IE can't handleSaving 它在 RGB 颜色空间中应该是 fix the problem(例如,在 Adob​​e Photoshop 中,使用“保存为 web...”选项)。

编辑:

我试过resavingimage in GIMP,然后indeed works now in IE for me

在此处了解更多信息link

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-19
    • 2011-11-06
    • 1970-01-01
    • 2012-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多