这里给大家推荐一个网站
http://xh.5156edu.com/page/z1015m9220j18754.html
CSS颜色表示
1、单词表示法:red blue green yellow…
2、十六进制表示法:最小值白色#00000 最大值黑色#FFFFFF
3、reb三原色表示法:rgb(0,0,0)
取值范围 0~255
CSS背景样式
background-color:背景颜色
background-image:背景图片
url(背景地址)
默认:会水平垂直都铺满背景图
background-repeat:背景图片的平铺方式
repeat-x
repeat-y
repeat(x,y 都行平铺,默认值)
no-repeat 都不平铺
background-position:背景图片的位置
x,y:number | 单词
x:left、center、right
y:top、center、bottom
background-attachment:背景图随滚动条的移动方式
scroll:默认值(背景位置按照当前元素进行偏移的)
fixed:(背景位置是按照浏览器进行偏移的)