网页排版CSS教学(35) <TABLE cellSpacing=0 cellPadding=2 width=500 border=1><TBODY><TR><TD class=c width=150><color> {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 { border-color : RED GREEN BLUE YELLOW }<BR><SPAN class=ex>同轴范例:</SPAN><DIV style="border-color:RED GREEN BLUE YELLOW"></DIV> 要附带说明的是,如果指定了四个合法设定值,则会依序套用于四个边框;如果只 有指定一个合法设订值,则会统一套用于四个边框;若只有指定二或三个合法设定值,则 未指定的边框会套用对边的颜色设定值;若无指定此一性质,则套用color性质之设定值。 </DIV><CENTER><TABLE cellSpacing=0 cellPadding=0 width=550 border=0><TBODY><TR><TD class=b width=250 height=20><SPAN class=p>DIV{border-color:RED }</SPAN></TD><TD class=b width=300 height=20><SPAN class=p>→top=RED;right=RED;bottom=RED;left=RED</SPAN></TD></TR><TR><TD class=b width=250 height=20><SPAN class=p>DIV{border-color:RED GREEN }</SPAN></TD><TD class=b width=300 height=20><SPAN class=p>→top=RED;right=GREEN;bottom=RED;left=GREEN</SPAN></TD></TR><TR><TD class=b width=250 height=20><SPAN class=p>DIV{border-color: RED GREEN BLUE}</SPAN></TD><TD class=b width=300 height=20><SPAN class=p>→top=RED;right=GREEN;bottom=BLUE;left=GREEN</SPAN></TD></TR></TBODY></TABLE></CENTER><BR><BR><CENTER><TABLE cellSpacing=0 cellPadding=0 width=550 border=0><TBODY><TR><TD class=b width=275 height=20><SPAN class=ls>border-top-style</SPAN> 设定上边框样式</TD><TD class=b width=275 height=20><SPAN class=ls>border-right-style</SPAN> 设定右边框样式</TD></TR>