【发布时间】:2011-05-01 17:21:44
【问题描述】:
我希望每个人都做得很好。 我遇到了有关图像的问题,我有一个 cgi 页面,即 Login.cgi,在 tha html 部分中我包含了一些图像,但有些正在显示,有些没有。
代码如下:
#!C:\perl\bin\perl.exe
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
print "Content-type: text/html\n\n";
print <<END2;
<html>
<head><title>LOGIN</title></head>
<body>
<table>
<tr>
<td background="C:/Program Files/Apache Software Foundation/Apache2.2/cgi-
bin/template_3/images/login2222.PNG" style="height: 135px; width:
100px;">
<img src="C:/Program Files/Apache Software Foundation/Apache2.2/cgi-
bin/template_3/images/ineer-top-left.gif"/>
</td>
</tr>
</table>
</body>
</html>
END2
在这两张图片中,td 标签的“背景图片”正常显示,但 td 内的图片没有显示。
其实, 我尝试将内容类型更改为“image/gif”,但没有成功。 我尝试将 src 更改为“../template_3/images/ineer-top-left.gif”或类似的东西 “~/template_3/images/ineer-top-left.gif”,但它不起作用。
当我在浏览器中右键单击图像并检查属性“它给出了类型:不可用 尺寸:不可用 但是地址(URL)是正确的。 任何人都可以请帮我找到解决方案。谢谢
【问题讨论】: