我有一些按鈕翻轉在IE瀏覽器以外的瀏覽器中正常工作。我沒有使用JQuery,這不是IE6 - 我還沒有在IE6中測試過它。它在IE8中。在IE8中消失的背景圖像
你可以看到這裏發生了什麼(看看它在IE與火狐):
http://www.brighttext.com/socialtech/index.html
我使用的是一個展示的技術或另一個按鈕響應側翻通過改變背景位置。我已經嘗試過爲IE6問題提出的各種解決方案,但沒有任何工作。任何人都可以看到這裏發生了什麼?爲什麼我們可以在IE中看到Home按鈕,而不是其他人?
代碼:
<ul>
<li id="homeLink" class="ord"><a href="index.html">Home</a></li>
<li id="faqLink" class="current"><a href="faq.html">FAQ</a></li>
<li id="speakersLink" class="ord"><a href="speakers.html">Speaker Info</a></li>
<li id="sponsorsLink" class="ord"><a href="sponsors.html">Sponsor Info</a></li>
</ul>
CSS的前兩個按鈕(我沒有這四個)的股利,這就是所謂mastheadLeft內:
#mastheadLeft li#homeLink a {
height: 32px;
width: 86px;
display: block;
text-indent: -1000em;
background: url(../images/home_dual.jpg) no-repeat left top ;
border: none;
}
#mastheadLeft li#homeLink.current a {
background-position: left top;
}
#mastheadLeft li#homeLink.current a:hover {
background-position: left top;
}
#mastheadLeft li#homeLink.ord a {
background-position: left bottom;
}
#mastheadLeft li#homeLink.ord a:hover {
background-position: left top;
}
#mastheadLeft li#faqLink a {
height: 34px;
width: 75px;
display: block;
text-indent: -1000em;
background: url(../images/faq_dual.jpg) no-repeat left bottom;
border: none;
}
#mastheadLeft li#faqLink.current a {
background-position: left top;
}
#mastheadLeft li#faqLink.current a:hover {
background-position: left top;
}
#mastheadLeft li#faqLink.ord a {
background-position: left bottom;
}
#mastheadLeft li#faqLink.ord a:hover {
background-position: left top;
}
卡邁勒嗨, 首先,萬分感謝您抽出時間做你做了什麼!第二 - 我剛剛確認你的測試。沒有顯示的三個圖像都不會在IE中打開!那麼,至少可以簡化問題,因爲我們知道,即使刪除了所有的CSS,IE也沒有看到圖像。爲什麼會這樣,我不知道。我們知道,因爲Firefox看到它們,圖像就在那裏。我會嘗試一些其他的測試......可能會將圖像文件移動到與html頁面相同的文件夾中......儘管這不是必需的。 – David