내 스프라이트 내비게이션의 CSS 부분을 구현하여 호버에있는 내 스프라이트의 "호버 (hover)"효과를 가져 오는 동안 문제가 있습니다. 코드를 보여 주면 설명하기가 쉽습니다.CSS 네비게이션 스프라이트 호버가 작동하지 않음
는 CSS :
#nav {
width:837px;
float:left;
margin:0px 0px 0px 30px;
background:url(../images/withtext.gif) repeat-x;
height:79px;
position: relative;
top: -45px;
}
#nav li {
margin:0;
padding:0;
list-style-type:none;
display:inline;
height:79px;
text-align:center;
float:left;
line-height:79px;
font-family:Georgia, "Times New Roman", Times, serif;
}
#nav a {
display:block;
height:79px;
color:#311f11;
text-decoration:none;
font-size:13px;
}
#nav a:hover {
background-image:url(withtext.gif);
color:#fff;
}
#nav .snowboard { width:240px; }
#nav .snowboard a:hover { background-position: 0px bottom; }
되는 HTML :
<ul id="nav">
<li class="snowboard"><a href="#">Snowboard</a></li>
<li class="briller"><a href="#">Briller</a></li>
<li class="ski"><a href="#">Ski</a></li>
<li class="stovler"><a href="#">Stovler</a></li>
<li class="handlevogn"><a href="#">Handlevogn</a></li>
</ul>
내비게이션 화상 :
현황
[1] http://i.imgur.com/zkVmoEN.gif "수동 및 마우스를 상태 탐색 줄" 내비게이션 :
[2] http://i.imgur.com/oZPK8kd.jpg "브라우저에서 탐색"이 호버에있는 이미지를 전체 홈을 아래로 이동하도록
그래서 어떻게 그것을해야합니까?
미리 도움을 주셔서 감사합니다.
solution 작업 우리가 미안 갈 간다. – Raegon
정말 대답 할 수있는 사람이 없습니까? – Raegon
작업 중 ... – Max