杀伤力极大!多人中招!警惕这个“伤人利器”
1280 2026-11-23 15:30
/*透明色*/
background-color: transparent;
/*半透明*/
background: rgba(0, 0, 0, 0.5)
/*换颜色*/
background-color: #;
/*书写实例 默认平铺的*/
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;
页面既既可以添加背景图片,还可以添加背景颜色,盒背第二个方位是盒背居中
/*x y 顺序不能颠倒了*/
background-position: 20px 50px;
background-position: center 40px;
/*固定*/
background-attachment: fixed;
/*随对象内容滚动*/
background-attachment: scroll;
/*背景颜色,中间*/
background-position: right center;
省略一个,盒背背景图片会压着背景颜色/*水平居中垂直,盒背背景图片位置*/背景图像滚动,盒背
background: black url(c:/WEB/amag/a1.png) no-repeat fixed center top