나는 체크 박스를 사용자 정의하려고 노력하고있다. 반올림하기 위해 수정 한 이후로 체크 박스를 언 클릭 할 수 없습니다.
다음 코드는 무엇이 잘못 되었나요? HTML에서 unclickable 체크 박스 - CSS 전용
<div class="checkbox-circle">
<input id="checkbox-1" type="checkbox" checked />
<label for="checkbox-1">Checkbox 1</label>
</div>
,
.checkbox-circle input[type="checkbox"] {
display: none;
}
.checkbox-circle label {
display: inline-block;
cursor: pointer;
position: relative;
padding-left: 25px;
margin-right: 12px;
}
.checkbox-circle label:before {
content: '';
display: inline-block;
width: 15px;
height: 15px;
position: absolute;
left: 0;
border: 1px solid #cccccc;
border-radius: 3px;
}
.checkbox-circle input[type="checkbox"]:checked + label:before {
font-size: 13px;
color: #5bc0de;
text-align: center;
line-height: 11px;
font-family: 'Glyphicons Halflings';
content: "\e013";
}
그것은 내가 원하지만 클릭 할 수있는 모든 것과 보여주는 것. 미리 감사드립니다.
[데모] (http://www.bootply.com/mFm95fnjBq) - 저에게 맞습니다. –