CSS3 background-image属性多张背景图片
的有关信息介绍如下:CSS3 background-image属性多张背景图片
新建文件创建div和添加背景
预览效果
改变图片的位置右上
效果如图
改变图片的位置左上
效果如图
改变图片的位置左下
效果如图
用background一段代码写出多张图片和位置
效果如图
附上源码
#id{
background:url(11.png) left bottom no-repeat , url(bg.jpg) left top repeat;
background-size:200px,1000px;
/* background-position: left bottom, left top;
background-repeat: no-repeat, repeat;*/
padding: 15px;
}
122
122
122
122
122
122
122
122
122
122