0
배경 이미지가있는 Input
Radio
을 포함하는 label
이 있습니다. 여기에서 알 수 있듯이 별도의 레이블 및 입력
왼쪽에 5-10pix와 같이 "Ja"와 "Nej"가 필요하지만 해결책을 찾지 못하는 것 같습니다. 누군가 나를 도와 줄 수 있습니까?
HTML :
<label id="labelradio1" for="Radio1">Ja
<input id="Radio1" type="radio" value="yes"></label>
<label id="labelradio2" for="Radio2">Nej
<input id="Radio2" type="radio" value="no"></label>
CSS :
#txtradiocall input[type='radio']{
position:absolute;
margin: -99999px;
}
#txtradiocall label{
display: inline-block;
cursor: pointer;
width: 15px;
height: 15px;
margin: 4px;
}
#txtradiocall #labelradio1 {
background: url('http://www.xxxx.com/images/images/thumb_up_green-v2.png');
background-repeat:no-repeat;
cursor: pointer;
width: 35px;
height: 22px;
}
#txtradiocall #labelradio2 {
background: url('http://www.xxxx.com/images/images/thumb_down-red-v2.png');
background-repeat:no-repeat;
cursor: pointer;
width: 35px;
height: 22px;
}
모두 수정되었습니다! – Kyle
[placekitten] (http://placekitten.com/) 바위 ..! 나는 개 사람이긴하지만 나 자신이다. 그러나 (마지막으로 내가 확인한) placepuppies가 존재하지 않기 때문에, 나는 그림 같은 문제에 행복하게 새끼 고양이를 적용 할 것이다. = D –