1
我稍後將此背景添加到正文以實現我希望它只出現在首頁上。我該怎麼做?如何讓背景圖片只顯示在主頁上?
background: url(/Imagenes/tipbusca.png) 10px 400px no-repeat, url(/Imagenes/tippublica.png) 96% 200px no-repeat;
感謝
我稍後將此背景添加到正文以實現我希望它只出現在首頁上。我該怎麼做?如何讓背景圖片只顯示在主頁上?
background: url(/Imagenes/tipbusca.png) 10px 400px no-repeat, url(/Imagenes/tippublica.png) 96% 200px no-repeat;
感謝
給一個類來body
只是主頁,然後針對該類:
body.home {
background: url(/Imagenes/tipbusca.png) 10px 400px no-repeat, url(/Imagenes/tippublica.png) 96% 200px no-repeat;
}
難道我補充一點,類PHP,以便它只會增加時,它的頭版?還是有更簡單的方法來做到這一點? – lisovaccaro 2011-01-13 06:07:52