0
爲什麼這仍然是包裝?這裏是我的代碼:使用空格時,表TD仍然仍然包裝:nowrap
<table>
<tr>
<td class="nowrap">
$<input type="text" name="test" value="" />
</td>
</tr>
</table>
和CSS:
.nowrap {
whitespace: nowrap;
}
爲什麼這仍然是包裝?這裏是我的代碼:使用空格時,表TD仍然仍然包裝:nowrap
<table>
<tr>
<td class="nowrap">
$<input type="text" name="test" value="" />
</td>
</tr>
</table>
和CSS:
.nowrap {
whitespace: nowrap;
}
我認爲'whitespace:nowrap'相當於'TD'屬性'nowrap' ... – kevmor
它不包裹我 - http://jsfiddle.net/QWPwG/,你測試了什麼瀏覽器上? –