时间: 2021-07-31 作者:daque
☆提出题目:<td width="28%" align="right" nowrap >我树立nowrap和不树立nowrap功效都一律。即是表格跟着笔墨机动蔓延,干什么?→回复题目:td元素nowrap属性的动作与td元素的width属性相关。◆即使未树立td宽窄,则nowrap属性是起效率的。◆即使树立了td宽窄,则nowrap属性是不起效率的。示例文献,点击运转按钮,察看功效:运转代码框<html><head><title>wrap属性接洽</title><meta http-equiv="content-type" content="text/html; charset=utf8"></head><body bgcolor="#ffffff" text="#000000"><p>尝试字符串:</p><p>我毕竟领会,我本来有一条韧性实足的命,它远比我设想中的那条命坚韧得多、耐磨的多……</p><p>单位格未树立nowrap属性的空表:</p><table width="100" border="1" cellspacing="0" cellpadding="0"><tr><td> </td></tr></table><p>介入尝试字符串:</p><table width="100" border="1" cellspacing="0" cellpadding="0"><tr> <td>我毕竟领会,我本来有一条韧性实足的命,它远比我设想中的那条命坚韧得多、耐磨的多……</td></tr></table><p>单位格树立了nowrap属性,未树立width属性:</p><table width="100" border="1" cellspacing="0" cellpadding="0"><tr><td nowrap>我毕竟领会,我本来有一条韧性实足的命,它远比我设想中的那条命坚韧得多、耐磨的多……</td></tr></table><p>单位格树立了nowrap属性,也树立了width属性:</p><table width="200" border="1" cellspacing="0" cellpadding="0"><tr><td width="120" nowrap>我毕竟领会,我本来有一条韧性实足的命,它远比我设想中的那条命坚韧得多、耐磨的多……</td><td> </td></tr></table></body></html> [ctrl+a 十足采用 提醒:你可先窜改局部代码,再按运转]