简体   繁体   中英

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:

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.

I am simply using the <img> tag, nothing much special.

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. 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.

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.

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)

do you have any CSS attached to those images? Are you by chance using a theme that you bought somewhere? I would check it for CSS that specifically applies to IE. Some theme builders write specific browser instructions into their css.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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