我有一个我已经建立的网站,我只是在 IE 中看不到那里的图像。在 chrome 中它可以工作:
<!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 一张。
编辑:实际上,即使直接访问它,我也根本无法在 Internet Explorer 中看到此图像!
编辑 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;