背景颜色和背景在一次

dem*_*mas 4 css

是否可以一次使用背景和背景颜色的身体?

body {
    background-color: #AAA;
background: url(../images/foto.jpg) no-repeat bottom right; 
}
Run Code Online (Sandbox Code Playgroud)

背景颜色仅在我删除背景时有效.

Rob*_*lls 5

是的,这是一个例子:

body {
  background: #aaa
  url(../images/foto.jpg) no-repeat
  bottom right;
}
Run Code Online (Sandbox Code Playgroud)