我想知道我在这段代码上犯的错误,但是我不能。在Firefox和IE上运行良好,但在Chrome中,内部单元不像代码似的那样居中。谷歌浏览器上的表格格式(纯html)
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td rowspan="7"></td>
<td style="width: 600px; height: 100px;"> </td>
<td rowspan="7"></td>
</tr>
<tr>
<td class="style1" valign="top"><?php echo($title); ?></td>
</tr>
<tr>
<td class="style2" valign="top"><?php echo($subtitle); ?></td>
</tr>
<tr>
<td class="style3" valign="top"><?php echo($content); ?></td>
</tr>
<tr>
<td class="style4"><?php echo($endtitle); ?></td>
</tr>
<tr>
<td style="width: 600px; height: 30px"></td>
</tr>
<tr>
<td style="width: 600px; height: 100px" class="style5" valign="top"></td>
</tr>
</table>
STYLE1和2等等都是简单:
.style1 {
text-align: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 32px;
color: #2B2B2B;
width: 600px;
}
,只有一些字体diferents
的firts图像显示了谷歌Chrome浏览器如何对其进行渲染,而第二火狐如何做到这一点: