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

 

背景:

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

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

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

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

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

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

no-repeat(不重复排列);

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

scroll(滚动)

指定背景位置:

1、background-position : 90% 90%; /*背景图片x与y轴的位置*/

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

buttom(向下对齐);

left(向左对齐);

right(向右对齐);

center(居中对齐);

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

 

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