0
스프라이트가 표시되지 않는 이유를 알 수없는 많은 시도를했습니다. 버튼에는 정상, 마우스 오버, 활성 중 세 가지 상태가 있습니다.버튼에 스프라이트가 나타나는 문제
#continue_btn {
float: right;
margin-right: 15px;
width: auto;
width: 229px;
height: 43px;
background-image:url(_img/continue_btn.png);
background-repeat: no-repeat;
float: none;
margin-left: -23px;
margin-bottom: 12px;
border-radius: 8px;
}
#continue_btn a{
background: url(_img/button_sprite.png) 0 0 no-repeat -13px -11px;
width: 229px;
height: 43px;
}
continue_btn a:hover {
background: url(_img/button_sprite.png) 0 0 no-repeat -14px -58px;
width: 229px;
height: 43px;
}
continue_btn a:active {
background: url(_img/button_sprite.png) 0 0 no-repeat -14px -106px;
width: 229px;
height: 43px;
}
You can see it here (왼쪽에서 사용자 입력 버튼 클릭). This is the sprite.
너무 감사 : 마지막으로
, 난 당신이 뭔가를 필요가 있다고 생각합니다! 마지막으로 한 가지 방법은 내 CSS에서 오지 않는다고 생각하는 테두리 가장자리를 제거하는 것입니다. 나는 방금 경계선 반지름을주었습니다 : 8px 그리고 그것입니다. 경계 가장자리가 깨끗해야합니다. 다시 한번 감사드립니다. – JulieBrescia
신경 쓰지 마라. 나는 그것이 경계 폭 인 것을 본다!! :) 감사! – JulieBrescia