nowrap作用: 属性规定表格单元格中的内容不换行。
举例:
但是如果一旦在td中定义了width,那么nowrap将失效
举例:
<table border="1">
<tr>
<th>Poem</th>
<th>Poem</th>
</tr>
<tr>
<td nowrap="nowrap">Never increase, beyond what is necessary, the
number of entities required to explain anything</td>
<td>Never increase, beyond what is necessary, the number of entities
required to explain anything</td>
</tr>
</table>但是如果一旦在td中定义了width,那么nowrap将失效
本文介绍了 HTML 中的 nowrap 属性及其使用方法,并通过一个具体的示例展示了如何使表格单元格内容不换行。同时指出当定义了单元格宽度时,nowrap 属性将不再生效。
932

被折叠的 条评论
为什么被折叠?



