是否可以一次性使用 background 和 background-color 用于 body?
body {
background-color: #AAA;
background: url(../images/foto.jpg) no-repeat bottom right;
}
背景颜色只有在我删除背景时才有效。
最佳答案
是的,这是一个例子:
body {
background: #aaa
url(../images/foto.jpg) no-repeat
bottom right;
}
关于css - 一次背景颜色和背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4177164/