当使用空格时,表TD仍然包装:nowrap

时间:2013-09-26 20:07:32

标签: html css

为什么这还在包装?这是我的代码:

<table>
<tr>
    <td class="nowrap">
        $<input type="text" name="test" value="" />
    </td>
</tr>
</table>

和CSS:

.nowrap {
   whitespace: nowrap;
}

1 个答案:

答案 0 :(得分:2)

带有连字符的white-space: nowrap;

相关问题