背景固定
背景固定

楼主
作者:糊涂阿猪 提交日期:2006-7-16 20:19:00 星期日(Sunday) 晴
1.背景固定
背景固定

style="background-image:url('图片URL');bgproperties: fixed;"


2.背景右上
背景右上固定


style="background-image:url('图片URL');background-repeat: no-repeat; background-attachment: fixed; background-position: 100% 0%;"


3.背景任意位置固定
背景任意位置固定

style="background-image:url('夋憸偺URL');background-position:20% 30%;background-repeat : no-repeat;"


4.背景左上固定
背景左上固定

style="background-image:url('夋憸偺URL');background-repeat: no-repeat; background-attachment: fixed; background-position: 0% 0%;"


5.背景右下固定:
背景右下固定

style="background-image:url('夋憸偺URL');background-repeat: no-repeat; background-attachment: fixed; background-position: 100% 100%"


6.背景左下固定:
背景左下固定

style="background-image:url('图片URL');background-repeat: no-repeat; background-attachment: fixed; background-position: 0% 100%"


7.背景左一列固定
背景居左

style="background-image:url('图片URL');background-position:0% 100%; background-repeat: repeat-y; background-attachment: fixed"


8.背景右一列固定:
背景居右

style="background-image:url('图片URL');background-position:100% 0%; background-repeat: repeat-y; background-attachment: fixed"


9.背景下一列固定:
背景居下

style="background-image:url('图片URL');background-position:0% 100%; background-repeat: repeat-x; background-attachment: fixed"


10.背景上一列固定:
背景居上

style="background-image:url('图片URL');background-position:100% 0%; background-repeat: repeat-x; background-attachment: fixed"


11.背景正中固定:
背景图象居中

style="background-image:url('图片URL');background-repeat: no-repeat; background-attachment: fixed; background-position: center"


12.背景居中纵一列固定:
背景图象纵列居中

style="background-image:url('图片URL');background-repeat: repeat-y; background-attachment: fixed; background-position: center"


13.背景横一列居中固定:
背景图象横列居中

style="background-image:url('图片URL');background-repeat: repeat-x; background-attachment: fixed; background-position: center"


© 天涯社区