- 沒有新回應!
2006-01-18 16:37 新版CSS---更換背景圖
紅鼻子小丑問道,不知怎麼換新版CSS的背景圖,其實和舊版的一樣…
舊版的CSS中,我們背景圖是放在body中,新版的也一樣,而不要忘記要到#banner中把 background-image:url( ); 那一列用/*及*/包住,或要刪掉也可以,但是如果你還想像我一樣,在最上面加個圖片(就是那隻想吃骨頭的小狗),可以把圖片網址放在#banner中,再調整圖片位置就行了。
我放上我的語法給大家參考
body{
margin:0px 0px 0px 0px;
text-align: center;
background-image:url(http://e.blog.xuite.net/e6/e2/12304732/blog_22501/txt/4713116/14.jpg);
background-attachment:fixed;
background-repeat:repeat;
color:#894040;
}
/*檔頭*/
#banner{
margin: 0px 5px 0px 5px;
padding: 0px;
height: 300px;
background-image:url(http://e.blog.xuite.net/e6/e2/12304732/blog_22501/txt/4713116/0.gif);
background-repeat:no-repeat;
background-position:280px 0px;
}
ps:我忘了說一點,就是定位框裡的那個background-image也要刪掉哦!
我要評分:





各站台台長