使用'<img src>'更改图像的位置



我正在使用以下命令将png图像获取到我的html页面中。

print count_out '<img src="./mydata.png">';

我还在我的html页面上写一个表格。问题是这张图片出现在上面,然后是下面的表格。我需要上面的桌子,然后在下面的图片。

下面是我打印表格的部分:

print count_out "<HTML>";
print count_out "<head>";
print count_out "</head>";
print count_out "<table border='1' cellpadding='10' cellspacing='0' width='50%' height='1%'>";
while (<F>) {
chomp;
my @list = split(/,/);
my $design = $list[0];
my $bto_date = $list[1];
my $die_size = $list[2];
my $technology = $list[3];
my $transistor_count = $list[4];
print count_out "<tr>";
print count_out "<TD padding-left: 10pxpadding-right: 10pxwidth='90px'bgcolor='#FFFFFF'><font size='2'>$design</TD>";
print count_out "<TD padding-left: 10pxpadding-right: 10pxwidth='90px'bgcolor='#FFFFFF'><font size='2'>$bto_date</TD>";
print count_out "<TD padding-left: 10pxpadding-right: 10pxwidth='90px'bgcolor='#FFFFFF'><font size='2'>$die_size</TD>";
print count_out "<TD padding-left: 10pxpadding-right: 10pxwidth='90px'bgcolor='#FFFFFF'><font size='2'>$technology</TD>";
print count_out "<TD padding-left: 10pxpadding-right: 10pxwidth='90px'bgcolor='#FFFFFF'><font size='2'>$transistor_count</TD>";
print count_out "</tr>";

您不关闭标记。

print count_out "</table>";

至少缺少。

谢谢添加以下行对我有效

print count_out "</table>";

当我打开html。。我看到了桌子,但图片没有显示出来。。我已经点击了8-10次刷新。。然后它就出现了。。为什么是

最新更新