ie7中缺少背景圖像;只有ie7有問題。爲什麼IE7中沒有背景圖片?
該網站在這裏http://www.competition4ct.com/。
這是我使用的背景圖像的調用:
html { background : ("source-file.png");}
爲什麼沒有背景圖像出現?
ie7中缺少背景圖像;只有ie7有問題。爲什麼IE7中沒有背景圖片?
該網站在這裏http://www.competition4ct.com/。
這是我使用的背景圖像的調用:
html { background : ("source-file.png");}
爲什麼沒有背景圖像出現?
您似乎在文件名前面缺少url
。它應該是:
body {background-image: url(source-file.png);}
請注意,我也用background-image
這裏,不background
。您可以使用background
快捷方式,那麼它會是這個樣子:
body {background: transparent url(source-file.png) left top no-repeat;}
它也更通常把背景上body
標籤,但我敢肯定,html
標籤在大多數情況下工作,以及。
不知道如果這是造成問題,但你需要在括號前面加上「url」。也許不會傷害,使身體有背景。最後,只要「背景」屬性可能需要更多輸入,因爲您一次設置了幾件事情(並且您只是試圖製作bg圖像)。所以:
html { background-image : url("source-file.png"); }
或
body { background-image : ("source-file.png");}
欲瞭解更多信息,請參閱:
http://www.w3schools.com/css/pr_background.asp
讓我們知道,如果這些解決方案解決您的問題。
是的,我們使它的使用身體屬性,謝謝。 – scohoe 2011-05-03 21:55:27
我只是看看我的IE7機器,它似乎是通過確定。 – imjared 2011-05-03 21:54:38