CSS Multi background属性用于一次添加一个或多个图像,而无需HTML代码。我们可以根据需要添加图像。
多背景图像的示例语法如下-
#multibackground {
background-image: url(/css/images/logo.png), url(/css/images/border.png);
background-position: left top, left top;
background-repeat: no-repeat, repeat;
padding: 75px;
}以下是值-
| 序号 | 值与说明 |
|---|---|
1。 | 背景 用于在一个区域中设置所有背景图像属性 |
2。 | background-clip 用于声明背景的绘画区域 |
3。 | background-image 用于指定背景图像 |
4。 | background-origin 用于指定背景图像的位置 |
5, | background-size 用于指定背景图像的大小 |