스프라이트에 대해 100 만 가지 문제가 있으며 온라인에서 읽은 IE8이 있지만 스프라이트가 전혀 나타나지 않는 문제가 있습니다. 내 모습이 나타나고 있는데, 잘못된 것만 보입니다. 그것은 다른 모든 브라우저에서 잘 작동합니다.IE8이 CSS 스프라이트의 틀린 부분을 표시합니다.
을 heres 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