English 中文(简体)
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.

Make sure the images are not CMYK, they will need to be RGB.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签