网页排版CSS教学(12) <DIV class=ex><SPAN class=ex>一般范例:</SPAN>BODY { background-attachment : fixed }<BR><SPAN class=ex>同轴范例:</SPAN><BODY style="background-attachment:fixed"></DIV></DIV><BR><BR><SPAN class=l>background-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><percent> X% Y%</TD><TD class=d width=350>图形上X% Y%的点对准元素的X% Y%位置</TD></TR><TR><TD class=c width=150><length> X Y</TD><TD class=d width=350>将图形左上角置于元素左上角水平 X垂直 Y之处</TD></TR><TR><TD class=c width=150>center</TD><TD class=d width=350>背景图形置于中央</TD></TR><TR><TD class=c width=150>left</TD><TD class=d width=350>背景图形对 左边</TD></TR><TR><TD class=c width=150>right</TD><TD class=d width=350>背景图形对 右边</TD></TR><TR><TD class=c width=150>top</TD><TD class=d width=350>背景图形对 顶部</TD></TR><TR><TD class=c width=150>bottom</TD><TD class=d width=350>背景图形对 底部</TD></TR></TBODY></TABLE><SPAN class=e>预设值:</SPAN><SPAN class=b>0% 0%</SPAN><BR><SPAN class=e>继承性:</SPAN><SPAN class=b>无</SPAN><BR><DIV class=ex><SPAN class=ex>一般范例:</SPAN>BODY { background- position : 100% 50% }<BR><SPAN class=ex>同轴范例:</SPAN><BODY style="background- position:100% 50%"></DIV></DIV><BR><BR><SPAN class=l>background</SPAN> 综合设定背景性质