2011-06-20 37 views
3

我有以下的CSS,這使整個身體的背景頂部的圖像:約50像素推動背景圖片向下

body { 
    background:url("http://intranet/img/background-top.png") repeat-x top; 
} 

是有可能推動這一形象了嗎?

回答

13

是:

body { 
    background: url(whatever) repeat-x 0px 50px; 
} 

或:

body { 
    background-image: url(whatever); 
    background-position: 0px 50px; 
    background-repeat: repeat-x; 
} 
3
body { 
    background:url("http://intranet/img/background-top.png") repeat-x left 50px; 
}