是否可以一次使用背景和背景颜色的身体?
body {
background-color: #AAA;
background: url(../images/foto.jpg) no-repeat bottom right;
}
Run Code Online (Sandbox Code Playgroud)
背景颜色仅在我删除背景时有效.
是的,这是一个例子:
body {
background: #aaa
url(../images/foto.jpg) no-repeat
bottom right;
}
Run Code Online (Sandbox Code Playgroud)