1.背景属性
1).background-color 背景颜色
2).background-image
3).background-repeat
4).bacckground-position
5).background-attachment
2.详情
1).background-color: red/#fff/(225,245,232);
2).background-img:url(img/dj.jpg);
3).background-repeat repeat默认/no-repeat不平埔/repeat-x背景沿x轴平埔/repeat-y背景沿y轴平埔/
4).background-position: left左边/center中间/top顶部/bottom底部/
5).background-position:right;方位只写一个值,另外一个值默认剧中。
6).background-position:right bottom;写两个值,顺序没有要求。
7).background-position:20px 30px;写两个值,第一个代表水平方向,第二个代表垂直方向。
8).background-attachment: scroll背景滚动 fixed背景不滚动
c's's背景属性
最新推荐文章于 2022-08-12 22:06:25 发布