0
我有一个表空白设置为nowrap和列宽度限制使用表格布局固定。这正确地隐藏了Firefox中的长行,但在IE9中这些行正在打包。白色空间:nowrap不工作在IE 9
测试用例:
<table border="1" width=200 style="white-space: nowrap; table-layout: fixed;">
<tr>
<td style="overflow: hidden;" width=150>Word with some spaces that isnt working in IE</td>
<td width=50>100/50</td>
</tr>
<tr>
<td style="overflow: hidden;" width=150>LoooooooooOOOOOOOOOoooooooooooooooooongword</td>
<td width=50>550/50</td>
</tr>
<tr>
<td style="overflow: hidden;" width=150>AnotherLoooooooooooonnnnnnnnnnnnnnnnGWord</td>
<td width=50>660/50</td>
</tr>
</table>
火狐:
IE 9:
很酷谢谢!不知道标签可以提供帮助 – waza123