网页排版CSS教学(41) <TBODY><TR><TD class=c width=150><length> {1,4}</TD><TD class=d width=350>长度单位,请参考第一章基本单位的相关说明</TD></TR><TR><TD class=c width=150><percentage> {1,4}</TD><TD class=d width=350>百分比,相对于元素宽度大小</TD></TR></TBODY></TABLE><SPAN class=e>预设值:</SPAN><SPAN class=b>无</SPAN><BR><SPAN class=e>继承性:</SPAN><SPAN class=b>无</SPAN><BR><DIV class=ex><SPAN class=ex>一般范例:</SPAN>DIV { padding : 2pt 5pt 2pt 5pt }<BR><SPAN class=ex>同轴范例:</SPAN><DIV style="padding:2pt 5pt 2pt 5pt"></DIV> 要附带说明的是,如果指定了四个合法设定值,则会依序套用于四个补白;如果只有指定一个合法设订值,则会统一套用于四个补白;若只有指定二或三个合法设定值,则 未指定的补白会套用对边的宽度设定值。 </DIV><CENTER><TABLE cellSpacing=0 cellPadding=0 width=550 border=0><TBODY><TR><TD class=b width=250 height=20><SPAN class=p>DIV { padding: 1pt }</SPAN></TD><TD class=b width=300 height=20><SPAN class=p>→top=1pt;right=1pt;bottom=1pt;left=1pt</SPAN></TD></TR><TR><TD class=b width=250 height=20><SPAN class=p>DIV { padding: 1pt 2pt }</SPAN></TD><TD class=b width=300 height=20><SPAN class=p>→top=1pt;right=2pt;bottom=1pt;left=2pt</SPAN></TD></TR><TR><TD class=b width=250 height=20><SPAN class=p>DIV { padding: 1pt 2pt 3pt }</SPAN></TD><TD class=b width=300 height=20><SPAN class=p>→top=1pt;right=2pt;bottom=3pt;left=2pt</SPAN></TD></TR></TBODY></TABLE></CENTER></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></P>