简体   繁体   English

与Chrome中不同,Internet Explorer中未显示两个特定图像

[英]Two specific images are not being displayed in Internet Explorer, unlike they do in Chrome

Here are two images of a graph that I had made on an excel sheet: 这是我在Excel工作表上制作的图形的两个图像:

I have made this website for a project, nothing much fancy. 我为这个项目做了这个网站,没什么好想的。 For some reason, these two images are not being displayed, at all, when I open up the part of the website that should contain those images, on Internet Explorer 11. On Chrome, they do get displayed as I would expect them to. 出于某种原因,当我在Internet Explorer 11上打开网站应包含这些图像的部分时,根本没有显示这两个图像。在Chrome上,它们的显示确实与我期望的一样。

I am simply using the <img> tag, nothing much special. 我只是使用<img>标记,没什么特别的。

I have learned the whole HTML/CSS/JavaScript thing by myself, have encountered a lot of problems, but so far I have always been able to solve them either by myself or by searching. 我自己学习了整个HTML / CSS / JavaScript的内容,遇到了很多问题,但是到目前为止,我始终能够自己解决或通过搜索解决它们。 This time, I am so frustrated that I have to seek for help actively, as I do so now. 这次,我感到非常沮丧,以至于我必须像现在这样积极寻求帮助。

I have produced those images on Paint.NET if that matters. 如果重要的话,我已经在Paint.NET上生成了这些图像。

Some code for whoever that looks for one: 一些寻找者的代码:

<!DOCTYPE html>

<html>

    <head>
    </head>

    <body>
        <div>
            <img src="2256704-13.jpg">
            <img src="costbenefitgraphbackground.png" alt="" />
            <img src="costbenefitgraph.png" alt="" />
        </div>
    </body>

</html>

This is assuming that you have renamed the files accordingly. 假设您已相应地重命名了文件。 With that code, Chrome displays the images while IE 11 doesn't. 使用该代码,Chrome会显示图像,而IE 11则不会。

Here is an example image that gets properly displayed on IE 11, on my end at least: http://fc09.deviantart.net/fs71/f/2014/157/d/5/2256704_13_by_thoappelsin-d7lb3y3.jpg (2256704-13.jpg in code) 这是一个示例图像,至少可以正确显示在IE 11上,至少在我端是这样: http ://fc09.deviantart.net/fs71/f/2014/157/d/5/2256704_13_by_thoappelsin-d7lb3y3.jpg(2256704-13代码中的.jpg)

do you have any CSS attached to those images? 您在这些图像上附加了CSS吗? Are you by chance using a theme that you bought somewhere? 您是否偶然使用在某处购买的主题? I would check it for CSS that specifically applies to IE. 我会检查它是否专门适用于IE的CSS。 Some theme builders write specific browser instructions into their css. 一些主题构建器将特定的浏览器说明写入其CSS。

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

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