2011-06-20 5 views
3

Iは、身体の背景の上部に画像を配置し、以下のCSS、約は50pxでプッシュ背景画像ダウン

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; 
}