1012背景与颜色

###背景与颜色

#前景色 color 会作为border、text、box-shadow的默认值。

#css3 : currentColor  当前颜色。用在其他属性上,比如bgc、linear-gradient上。场景:希望元素的背景颜色和边框一致,

'''

color : red;

background-color: currentColor;

```

#透明 transparent

##background-image

#background-repeat: no-repeat;不重复

#background-size: cover;填充//contain 等比例尽量大 //  x  y 

#background-attachment 附着 fixed 定在视口上 //scoll 跟随元素。local 图片跟随元素内容 

#background-origin 起始渲染位置 border-box padding-box content-box

#


你可能感兴趣的:(1012背景与颜色)