왜 내 스프라이트 이미지가 노란색 테두리가있는 상자의 배경으로 표시되지 않습니까?스프라이트 이미지가 표시되지 않습니까?
사람이 좋은 것 내가 변화해야하는지에 대한 몇 가지 예제와 함께 할 수 있다면 ..
그냥 날, allready 게시이의 코드에 comapred 더 많은 텍스트를 필요로하게 예를 들면 다음과 같습니다이 있습니다 게시 여기
-.- 내 코드입니다 :
HTML :
<div class="repeat">
<div style='width:100%;'>
<div style='float:left;margin-top:107px;margin-left:50px;width:80px;height:100px;border:1px solid yellow;'>
<div class="menu">
<ul id='nav'>
<li class='front'><a href='?p=front'>Front</a></li>
</ul>
</div>
</div>
<div style='float:left;margin-top:107px;margin-left:10px;width:80px;height:100px;border:1px solid yellow;'></div>
<div style='clear:both;'></div>
</div>
</div>
CSS는 :
.repeat {
float:left;
width: 884px;
height: auto;
min-height:700px;
background: url(images/repeat.png) repeat-y;
z-index:2;
}
.menu {
width:80px;
height:100px;
position:relative;
}
ul#nav {
list-style: none inside;
}
ul#nav li {
display: inline;
}
ul#nav li a {
display: block;
height: 40px;
float: left;
}
ul#nav li.front a{
width:80px;
background: url(images/menu/p1.png) top center no-repeat;
}
ul#nav li a:hover {
background-position: bottom center;
}
ul#nav li.front2 a{
width:80px;
background: url(images/menu/p1.png) bottom center no-repeat;
}
시도 : 홈페이지 ('이미지/메뉴/p1.png') ...' – dnagirl
u는 무엇을 의미합니까? O.O – Matthew
응? 노란색 테두리의 상자에는 배경 이미지가 없습니다. – Nix