有一百萬個關於精靈和IE8我已經在線閱讀的問題,但是,他們似乎都處理了根本沒有出現的精靈問題。我正在出現,它只是顯示了精靈的錯誤部分。它可以在所有其他瀏覽器中正常工作。IE8顯示錯誤的一塊CSS精靈
繼承人的CSS
div.searchForm input[type=text] {
border: 0;
padding: 0 10px;
margin: 0;
background: url(../img/sprite.png) 0 -125px no-repeat;
background-size: 115% 235px;
width: 600px;
height: 30px;
float: left;
font-size: 12px;
color: #fff;
-webkit-appearance: none;
-webkit-border-radius: 0;
}
和HTML:
<section id="secondary6">
<h1 class="hidden">Search</h1>
<div class="clearfix">
<div class="grid_4">
<nav class="grid_2 secondary">
<h1 class="hidden">Search Secondary Navigation</h1>
</nav>
<div class="searchForm">
<input type="text" placeholder="search">
<input type="button">
<input type="submit" class="hidden" >
</div>
</div>
</div>
</section>
基本上你點擊搜索按鈕,並顯示應否則隱藏搜索欄。就像我說的那樣,它可以在其他瀏覽器中使用
是的,你說得對!它並沒有解決問題,但刪除該行在其他瀏覽器中也顯示了精靈的錯誤部分。謝謝! – Paidenwaffle