2010-11-14 192 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; 
}