2010-11-14 198 views
4

是否有可能一次性使用背景和背景颜色的身体?背景颜色和背景在一次

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

仅当我删除背景时,背景色才起作用。

回答

5

是的,这里有一个例子:

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