2011-05-09 79 views
0

我有一個背景圖像,約有20px左右的填充顯示在IE中。它推動整個頁面向下。神祕的一點是,我將整個背景與另一幅圖像拼接起來,而這幅圖像沒有出現在縫隙中。在Firefox和其他地方看起來很好。我已經利潤率/填充設置爲0遍,CSS重置代碼等在Internet Explorer中的背景圖像上的神祕填充

http://circore.com/sporttours/news/

這是在style.css中該區域的CSS,但我在其他地方猜的東西是使這個靠不住的:

#content-top 
{ 
    background:url(images/mainheader.png) no-repeat; 
    height:171px; 
    width:690px; 
    margin-left:210px; 
    margin-top:0px; 
    padding-top:0px; 
    vertical-align: top; 
} 

非常感謝!

+0

哪個版本的IE? – 2011-05-09 16:46:33

回答

1

嘗試採取的空白出main_bg的:

<div id="main_bg"> 
    <img src="http://circore.com/sporttours/wp-content/themes/Memoir/images/bg.jpg" alt="" /> 
</div> 

- >

<div id="main_bg"><img src="http://circore.com/sporttours/wp-content/themes/Memoir/images/bg.jpg" alt="" /></div> 
+0

這兩個都是正確的。謝謝,我永遠不會想到這個! – Elaine 2011-05-09 18:37:18

0

這個圖像調用你的main_bg DIV:

SRC =「HTTP:// circore .com/sporttours/wp-content/themes/Memoir/images/bg.jpg「

正在返回404錯誤。

該間隙看起來像是瀏覽器斷開的圖像鏈接圖標的空間。 這個0x0圖片甚至在html中是必要的嗎?

我在safari中看到它。