2012-08-29 3 views
1

빌드 한 사이트가 있으며 IE에서 이미지를 볼 수 없습니다. 크롬에서는 작동합니다.인터넷 익스플로러에서 이미지를 볼 수 없습니다.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
     <title>Report</title> 
     <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 
    </head> 
    <body> 
     <table> 
      <tr> 
       <td align="left"> 
        <img width="215" height="62" src="Report_files/image293.png" /> 
       </td> 
       <td align="right"> 
        <img width="257" height="75" src="Report_files/image310.jpg" /> 
       </td> 
      </tr> 
     </table> 
     <img width="776" height="9" src="Report_files/image318.gif" /> 
     <br /> 
     <div style="text-align: center;"> 
      Report - Protein Expression<br /> 
      1111111111 <br /><br /> 

     </div> 
     <div> 
      Application Details<br /> 
      Application: Protein Expression<br /> 
      <img width="382" height="245" src="Report_files/Plate.gif" /><br /> 
     </div> 
    </body> 
</html> 

처음 세 개의 이미지는 볼 수 있지만 Plate.gif는 볼 수 없습니다.

편집 : 사실 직접 인터넷에 액세스 할 때도 인터넷 익스플로러에서이 이미지를 전혀 볼 수 없습니다!

EDIT 2 : C# 코드를 사용하여 이미지를 만들었습니다. 내 생각 엔 이미지가 틀린 머리글 또는 뭔가로 만들어 졌다는 것입니다. 다음은 코드입니다.

Size size = new Size(panelPlateDrawing1.Size.Width + ucColorMapLegend1.Size.Width, 
       Math.Max(panelPlateDrawing1.Size.Height, ucColorMapLegend1.Size.Height)); 

      Bitmap img = new Bitmap(size.Width, size.Height); 

      panelPlateDrawing1.DrawToBitmap(img, new Rectangle(0, 0, panelPlateDrawing1.Size.Width, panelPlateDrawing1.Size.Height)); 

      ucColorMapLegend1.DrawToBitmap(img, new Rectangle(panelPlateDrawing1.Size.Width, 0, ucColorMapLegend1.Size.Width, ucColorMapLegend1.Size.Height)); 

      return img; 
+3

IE *는 대소 문자를 구별합니다. – Alex

+1

또한 'alt'속성을 이미지에 추가하십시오. – Alex

+0

확인 + alt, 같은 문제가 추가되었습니다. – Vadiklk

답변

1

일반적으로 인터넷 익스플로러 (또는 브라우저)에 이미지가 표시되지 않는 이유는 이미지가 이해할 수없는 형식이기 때문이며 이미지를 디스크에 저장하는 방법을 보여주지 않기 때문입니다. 당신이 이미 짐작했듯이, 그들은 헤더 나 정보를 가지고 있습니다. 이 문제를 해결하려면 적절한 형식으로 저장해야합니다. 자세한 내용은 여기를 참조하십시오. Bmp to jpg/png in C#

+0

실제로 내가 게시 한 20 분 전에이 정확한 stackoverflow 질문을 찾았지만, 당신은 바로 그것을 짐작. +1하고 정답. – Vadiklk

2

대소 문자를 구분하지 못할 수도 있습니다. 파일 이름을 확인하십시오.

+0

유효성 검사가 올바른지 확인하십시오. – Vadiklk

+0

새 수정 사항을 확인하십시오. – Vadiklk

관련 문제