一些PNG图像不加载在IE10中 [英] some png images not load in IE10

查看:185
本文介绍了一些PNG图像不加载在IE10中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用与IE10兼容的网页。在IE10中,一些png图像完美加载。但一些图像不加载(看起来像一个破碎的图像)。但是,每一件事都在FF19工作。为什么会这样呢?任何解决方案?

 < BODY> 
< img src =aaa / Test1.png/>
< img src =aaa / Test2.png/>
< img src =aaa / Test3.png/>
< img src =aaa / Test4.png/>
< / BODY>

更新:

当我打开本地的HTML文件。如果我打开域图像加载。我很困惑请告诉我为什么会发生这种情况?

解决方案

所以我也有这个错误,我的修复非常讨厌。 PNG和JPG文件是非常相似的,实际上它们是如此相似,你可以简单地改变文件扩展名,大多数图像浏览器和浏览器可以正确地呈现图像。



我的问题是我有一些本地.png和一个本地的.jpg。出于某种原因,我们决定,我们想要所有的文件到.png,所以我们只是将.jpg扩展名改为.png扩展名,而不是在photoshop中正确保存图像。这工作得很好,因为几乎每个浏览器都能够解释发生了什么,除了当然IE浏览器。这是造成我们的团队成员之间的一些很大的困惑,直到我们发现发生了什么。



我会尝试打开在PS失败的图像,并将其保存为.png 。这是什么解决了我们的问题。

希望它有帮助


I am working with a webpage that compatible to IE10. In IE10 some png images are loaded perfectly. but some images are not load(looks like a broken image). But every thing work in FF19. why this happening? any solution for this?

<BODY>
  <img src = "aaa/Test1.png" />
  <img src = "aaa/Test2.png" />
  <img src = "aaa/Test3.png" />
  <img src = "aaa/Test4.png" />
</BODY>

UPDATE :

The problem occurs only when i open the html file locally. If i open with domain images are loaded. Am so confused. Please some one tell me why this happening?

解决方案

So I was having this error as well and my fix was very obnoxious. PNG and JPG files are very similar, in fact they are so similar that you can simply change the file extension and most image viewers and browsers can render the image properly.

My problem was that I had some native .png and a single native .jpg. For some reason we decided that we wanted all of the files to .png so we simply changed the .jpg extension to a .png extension instead of saving the image properly in say photoshop. This worked great as almost every browser was able to decipher what was going on except for of course IE. This was causing some great confusion amongst our team members until we found out what happened.

I would try to open the image that is failing in PS and save it as .png. This is what fixed our problem.

Hope it helps

这篇关于一些PNG图像不加载在IE10中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆