HTML <th> ±êÇ©µÄ nowrap ÊôÐÔ
ʵÀý
´øÓÐ nowrap ÊôÐԵıí¸ñµ¥Ôª£º
<table border="1">
<tr>
<th>Company in USA</th>
<th nowrap="nowrap"
>Address</th>
</tr>
<tr>
<td>Apple, Inc.</td>
<td>1 Infinite Loop Cupertino, CA 95014</td>
</tr>
<tr>
<td>Google, Inc.</td>
<td>1600 Amphitheatre Parkway Mountain View, CA 94043</td>
</tr>
</table>
¶¨ÒåºÍÓ÷¨
nowrap ÊôÐԹ涨±íÍ·µ¥Ôª¸ñÖеÄÄÚÈݲ»»»ÐС£
ä¯ÀÀÆ÷Ö§³Ö
¾¡¹Ü²»ÔÞ³ÉʹÓà nowrap ÊôÐÔ£¬µ«ÊÇËùÓÐä¯ÀÀÆ÷¶¼Ö§³ÖËü¡£
¼æÈÝÐÔ×¢ÊÍ
ÔÚ HTML 4.01 ÖУ¬²»ÍƼöʹÓà th ÔªËØµÄ nowrap ÊôÐÔ£»ÔÚ XHTML 1.0 Strict DTD ÖУ¬²»Ö§³Ö th ÔªËØµÄ nowrap ÊôÐÔ¡£
ÇëʹÓà CSS ´úÌæ¡£
CSS Óï·¨£º<th style="white-space: nowrap">
ÔÚÎÒÃÇµÄ CSS ½Ì³ÌÖУ¬Äú¿ÉÒÔÕÒµ½¸ü¶àÓÐ¹Ø white-space ÊôÐÔ µÄϸ½Ú¡£
Óï·¨
<th nowrap="value">
ÊôÐÔÖµ
Öµ | ÃèÊö |
---|---|
nowrap | ¹æ¶¨±íÍ·µ¥Ôª¸ñÖеÄÄÚÈݲ»»»ÐС£ |