在IE8中工作正常。在Firefox中,如果我从td中删除nowrap属性,文本会被正确包装,但是不会删除nowrap文本而不会被包装。如何覆盖表格nowrap属性
有没有什么办法在firefox中通过css覆盖nowrap属性。
<div style="width:100%;border:1px solid #eaeaea">
<table style="width:100%;word-wrap:break-word;table-layout:fixed" border="1" >
<tr>
<td>
thisssssssssssssssssssssssssss
</td>
<td nowrap="" style="word-wrap:break-word;">
22222222thisssssssssssssssssssssssssss22222222thisssssssssssssssssssssssssss22222222thisssssssssssssssssssssssssss
</td>
</tr>
</table>
</div>
nowrap =“nowrap”将其关闭(已弃用 - btw)。不使用它将允许你为''td style = ...'打包。 – Dawson 2011-03-22 07:32:30