Html 表TD在使用空格时仍然换行:nowrap
为什么这个还在包装?这是我的密码:Html 表TD在使用空格时仍然换行:nowrap,html,css,Html,Css,为什么这个还在包装?这是我的密码: <table> <tr> <td class="nowrap"> $<input type="text" name="test" value="" /> </td> </tr> </table> 它是空白:nowrap带有连字符。我认为空白:nowrap相当于TD属性nowrap…它没有为我换行-,你在哪个浏览器上测试它? .nowrap {
<table>
<tr>
<td class="nowrap">
$<input type="text" name="test" value="" />
</td>
</tr>
</table>
它是
空白:nowrap
带有连字符。我认为空白:nowrap
相当于TD
属性nowrap
…它没有为我换行-,你在哪个浏览器上测试它?
.nowrap {
whitespace: nowrap;
}