background-position
body{
background-image:url('dasf.gif');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}
1.top left
2.top center
3.top right
4.center left
5.center center
6.center right
7.bottom left
8.bottom right
9.bottom center
如果你規定了一個關鍵詞,那么第二個值將是'center'
默認值:0%0%
我們常用負值;來定位
background-attachment
body{
background-image:url('dasf.gif');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}