저는 버스 예약 사이트 프로젝트에 참여하고 있습니다. 예약하려면 좌석을 사용해야합니다. 따라서 확인란을 이미지로 바꿀 수 있습니다. 가능하다면 알려주세요. 또는 다른 가능성이 있다면 제게 아이디어를 알려주세요. Thnku.
CSS DEMO에 대한 간단한 솔루션 제공
HTML
<input type="checkbox" id="checkbox-id" /> <label for="checkbox-id">Some label</label>
CSS
input[type="checkbox"] {
position: absolute;
left: -9999px;
}
input[type="checkbox"] + label {
background: url(http://xandeadx.ru/examples/styling-checkbox/checkbox-sprite.gif) 0 0 no-repeat;
padding-left: 20px;
}
input[type="checkbox"]:checked + label {
background-position: 0 -32px;
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다