简体   繁体   中英

Why are some images rendering on IE6 and some are not?

the images are showing up in safari and firefox but not IE6. I have four images, two of them are showing up in IE6 and two are not. If it helps, they are being toggled with an if statement. suggestions?

Here is an example of the code, there are four of these chunks:

                 <div class="NavIcons">
                    <a href="http://www.blah.org/MyQuestions.php?id=<?php echo $prof->id; ?>"
                        <img src="http://www.blah.org/styles/images/<?php if($ProfileIcon == "questions") { echo "Red"; }else{ echo "Grey"; } ?>QuestionNew.jpg" border="0"/>
                    </a>
                </div>

Check the images directly in the web browser affected.

<img src="http://example.com/styles/images/<?php
   if($ProfileIcon == "questions") {
     echo "Red"; 
   } else {
     echo "Grey";
   } ?>QuestionNew.jpg" border="0" />

Would work out to:

http://example.com/styles/images/RedQuestionNew.jpg
http://example.com/styles/images/GreyQuestionNew.jpg

If you can get the JPGs to load correctly then that should solve it. Some possible causes of a JPG that won't load: saved as a different format than JPG but saved with .jpg extension, saved in CMYK colorspace rather than RGB, upload of file was incomplete, permissions problems with the file. Though the last two are unlikely because they're visible in other browsers.

确保图像不是CMYK,它们需要是RGB。

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