当我在下面有这个<table>时,在FF和IE8中文本会自动换行,但当我在兼容模式或IE7模式下运行时,文本不会换行,前面的宽度基本上会被忽略。有什么办法解决这个问题吗?下面是一个简化的例子。
<table>
<tr>
<td style="width:125px">
hi
</td>
<td>bye</td>
</tr>
<tr>
<td>
line of text that will equal more than the above width
</td>
<td>bye</td>
</tr>
</table>发布于 2010-04-08 03:45:13
<table>
<tr>
<td style="width:125px">
hi
</td>
<td>bye</td>
</tr>
<tr>
<td style="width:125px">
line of text that will equal more than the above width
</td>
<td>bye</td>
</tr>
</table>https://stackoverflow.com/questions/2595241
复制相似问题