《css权威指南》颜色和背景

color

可选值:<color> | inherit
初始值:用户代理决定
应用于:所有元素
是否默认继承:是

background-color

可选值:<color> | transparent | inherit
初始值:transparent
应用于:所有元素
是否默认继承:是

background-image

可选值: <uri> | none | inherit
初始值:none
应用于:所有元素
是否默认继承:否

background-repeat

可选值:repeat | repeat-x | reapeat-y | no-repeat | inherit
初始值:repeat
应用于:所有元素
是否默认继承:否

background-position

可选值:[[<percentage> | <length> | left | center | right ] [<percentage>] | <length> | top | center | bottom]?] || [[left | center | right] || [top | center | bottom]] | inherit
初始值:0% 0%
应用于:块级元素和替换元素
是否默认继承:否

background-attachment

可选值:scroll | fixed | inherit
初始值:scroll
应用于:所有元素
是否默认继承:否

background

可选值:[ <background-color> | | <background-image> || <background-repeat> || <background-attachment> || <background-position> ] | inherit
初始值:根据单个属性
应用于:所有元素
是否默认继承:否

猜你喜欢

转载自blog.csdn.net/u013214292/article/details/80943201