背景图片background-image: url()
#h1_1{
background-image: url(C:/Users/ychen64/Pictures/红心\(1\).png);
height: 14000px;
background-repeat: no-repeat;
background-color: #909399;
background-position:center;
background-attachment: fixed;
}
图片位置 background-position
关键字:top right bottom left 百分数 长度值
关联background-attachment
关联使原图像再可视区域的位置固定,不受滚动的影响。
关键字:scroll(默认值) fixed(使图片不受滚动和浏览器窗口大小变化的影响)
汇总backgroud
backgroud: color image repeat attachment position
没有必不可缺的值,至少出现一个值。