时间:2026-11-23 03:12:14编辑:z
/*固定*/
background-attachment: fixed;
/*随对象内容滚动*/
background-attachment: scroll;
/*背景颜色,还可以添加背景颜色,定位背景地址,背景背景图片,式盒色尺定位背景图片位置*/中间*/
background: black url(c:/WEB/amag/a1.png) no-repeat fixed center top
/*水平居中垂直,1.背景颜色
/*透明色*/
background-color: transparent;
/*半透明*/
background: rgba(0, 0, 0, 0.5)
/*换颜色*/
background-color: #;
2.背景图片
/*书写实例 默认平铺的*/
background-image: url(c:/WEB/amag/a1.png);
/*不平铺*/
background-repeat: no-repeat;
/*平铺*/
background-repeat: repeat;
/*x 平铺*/
background-repeat: repeat-x;
/*y 平铺*/
background-repeat: repeat-y;
页面既既可以添加背景图片,