css 背景样式 background

 background-color: 指定填充背景的颜色。

 background-image: 引用图片作为背景。

 background-position: 指定元素背景图片的位置。

 background-repeat: 决定是否重复背景图片。

 background-attachment: 决定背景图是否随页面滚动。

背景的简写属性:

background: <color> <image> <position> <attachment> <repeat>

css3属性:

背景修剪(background-clip)

背景原点(background-origin)

背景尺寸(background-size)



你可能感兴趣的:(css 背景样式 background)