我有一段時間讓這個圖像居中。任何幫助,將不勝感激。在http://www.quickpaysolutions.com/ttb.html
CGI中心圖像
#!/usr/bin/perl
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
use CGI;
my $cgi = new CGI;
print
$cgi->header() .
img {src => "../cgi-bin/images/mtlogos.png", align=>"CENTER"};
$cgi->start_html(-title => 'Form Results') .
$cgi->center($cgi->h1('Reciept <br> Please Print this Reciept')). "\n";
my @params = $cgi->param();
print '<table border="1" width="600" align="center" cellspacing="1" cellpadding="2">' . "\n";
foreach my $p (param()) {
print "<tr><th>$p</th><td>" . $cgi->param($p) . "</td></tr>\n";
}
print "</table>\n";
試着把圖像放在寬闊的桌子裏,例如:用'width = 100%'。 – tivn