background-image属性
用于给盒子加上背景图片:
background-image:url(images/wuyifan.jpg);
url()表示网址,uniform resouces locator 统一资源定位符
background-repeat属性
设置背景图是否重复的,重复方式
background-repeat:no-repeat; 不重复
background-repeat:repeat-x; 横向重复
background-repeat:repeat-y; 纵向重复
background-position背景定位属性
background-position:向右移动量 向下移动量;
background-attachment背景是否固定。
background-attachment:fixed;