网页排版CSS教学(16) <DIV class=ex><SPAN class=ex>一般范例:</SPAN>DIV { height : 300pt }<BR><SPAN class=ex>同轴范例:</SPAN><DIV style="height:300pt"></DIV></DIV><BR><BR><SPAN class=l>position</SPAN> 设定位置 <DIV><SPAN class=e>支 持:</SPAN><SPAN class=b>IE4、NC4</SPAN><BR><SPAN class=e>适 用:</SPAN><SPAN class=b>区块元素</SPAN><BR><SPAN class=e>可能值:</SPAN> <TABLE cellSpacing=0 cellPadding=2 width=500 border=1><TBODY><TR><TD class=c width=150>absolute</TD><TD class=d width=350>以父元素为基准,摆设在特定位置上</TD></TR><TR><TD class=c width=150>relative</TD><TD class=d width=350>以相邻元素为基准,摆设在特定位置上</TD></TR><TR><TD class=c width=150>static</TD><TD class=d width=350>预设位置,以该元素于原始码中位置而定</TD></TR></TBODY></TABLE><SPAN class=e>预设值:</SPAN><SPAN class=b>absolute</SPAN><BR><SPAN class=e>继承性:</SPAN><SPAN class=b>无</SPAN><BR><DIV class=ex><SPAN class=ex>一般范例:</SPAN>DIV { position : static }<BR><SPAN class=ex>同轴范例:</SPAN><DIV style="position:static"></DIV></DIV><BR><BR><SPAN class=l>top</SPAN> 设定顶端位置 <DIV><SPAN class=e>支 持:</SPAN><SPAN class=b>IE4、NC4</SPAN><BR><SPAN class=e>适 用:</SPAN><SPAN class=b>区块元素</SPAN><BR><SPAN class=e>可能值:</SPAN> <TABLE cellSpacing=0 cellPadding=2 width=500 border=1><TBODY><TR><TD class=c width=150><length></TD><TD class=d width=350>长度单位,请参考第一章基本单位的相关说明</TD></TR><TR><TD class=c width=150><percentage></TD><TD class=d width=350>百分比,以父元素宽度为基准</TD></TR>