简体   繁体   English

图像未显示在Internet Explorer 8中

[英]Image not displaying in Internet Explorer 8

I have an image that does not display in IE8, I have deleted the cache and all temp IE files and reload. 我有一个不会在IE8中显示的图像,我删除了缓存和所有临时IE文件并重新加载。 This is the code: 这是代码:

<img src='/images/site/categories/Display_all_2.jpg'>

If I use the direct path to the image IE displays the image fine 如果我使用图像的直接路径IE会很好地显示图像

http://my_domain/images/site/categories/Display_all_2.jpg

I have other images on the same page that works fine, no problems in Chrome and Firefox. 我在同一页面上还有其他图像可以正常工作,在Chrome和Firefox中没有问题。 Initially I thought the image was corrupt but then it should not display using the URL path to the the image. 最初,我认为该图像已损坏,但随后不应使用该图像的URL路径进行显示。

Any ideas? 有任何想法吗?

/M /米

I found out the reason it did not work, my code actually looked like this 我发现它不起作用的原因,我的代码实际上看起来像这样

`<img src="/images/site/categories/Display_all_2.jpg" height="" width="">`

The empty height and width mess it up in IE. 空的高度和宽度在IE中将其弄乱了。

/M /米

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM