- CSS背景:
CSS背景属性用于定义HTML元素的背景。CSS属性定义背景效果:background-color;background-image;background-repeat;background-attachment;background-position。
background-color属性定义元素的背景颜色:body {background-color:#bc0000;}。CSS中,颜色值通常以三种方式定义:十六进制;RGB;颜色名称。
background-image属性描述了元素的背景图像。
background-repeat属性设置水平(repeat-x)、垂直(repeat-y)平铺或不平铺(no-repeat)。
b