欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

 

背景:

1background-color:#F5E2EC; /*背景颜色*/

2background-image : url(a.gif); /*背景图片*/

3background:transparent; /*透视背景*/

4background-repeat : repeat; /*重复排列-网页默认*/

repeat-x(x轴重复排列);

repeat-y(y轴重复排列);

no-repeat(不重复排列);

5background-attachment : fixed; /*固定背景*/

scroll(滚动)

指定背景位置:

1background-position : 90% 90%; /*背景图片xy轴的位置*/

2background-position : top; /*向上对齐*/

buttom(向下对齐);

left(向左对齐);

right(向右对齐);

center(居中对齐);

简写方法 background:#000 url(..) repeat fixed left top;

 

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r33434.shtml