我有这个简单的表格,其中最后一行显示图像按钮旁边的文本。这在 IE7 以外的其他浏览器中运行良好。
<table>
<tr>
<td>Some header</td>
<td>Some other header</td>
</tr>
<tr>
<td colspan="2" class="infoRow">Info:
<input type="image" class="infoButton" src="Images/down_arrow.png" /></td>
</tr>
</table>
来自 CSS 文件:
.infoButton
{
float: right;
padding: 0;
margin-left: 20px;
}
.infoRow
{
text-align: right;
}
IE7 在表格单元格中将文本一直显示到右侧,图像按钮在其下方并且也向右对齐。我想显示图像按钮左侧的“信息:”文本,这在其他浏览器中可以正常工作。