1
背景圖片在IE中沒有顯示,並且可以在其他瀏覽器中正常運行。背景圖片在IE中沒有顯示,並且與其他瀏覽器的效果很好
我的CSS代碼行:
background: url(../images/box.png)no-repeat;
背景圖片在IE中沒有顯示,並且可以在其他瀏覽器中正常運行。背景圖片在IE中沒有顯示,並且與其他瀏覽器的效果很好
我的CSS代碼行:
background: url(../images/box.png)no-repeat;
您應該查看背景的shorthand implementation:
background: (color) url(../images/box.png) no-repeat (position-x) (position-y);
^^^^^
there needs to be
a space here too
我建議你移動到個人申報,如果你不打算指定一切以簡寫的形式出現,即:
background-image: url(../images/box.png);
background-repeat: no-repeat;
在圖像src和不重複之間添加一個空格。
url(../images/box.png) no-repeat
其中IE版本? – swapnesh
我認爲這是因爲''''和'no-repeat'之間沒有空格。試試這個:'background:url(../ images/box.png)no-repeat;' – 2013-06-05 03:45:39