.img-box{ position: relative; padding-bottom: calc(세로/가로*100%); img{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; }
-'swiper-button-disabled' 등의 클래스를 알 수 있음
<input type="checkbox" id="Software"> <label for="Software">Frontend</label>
(html) <div class="chk-wrap"> <input type="checkbox" id="allchk"> <label for="allchk" class="all-chk" data-target="area">전체선택</label> </div> <div class="area" id="all"> <div class="chk-wrap"> <input type="checkbox" id="job1"> <label for="job1">직무1</label> </div> <div class="chk-wrap"> <input type="checkbox" id="job2"> <label for="job2">직무2</label> </div> </div> (css) .chk-wrap input{ position: absolute; clip: rect(0,0,0,0); } .chk-wrap label::before{ display: inline-block; width: 10px; height: 10px; border: 1px solid #000; content: ''; } .chk-wrap input:checked+label::before{ background: #000; } (script) $('.all-chk').click(function(){ target = $(this).data('target') if ($(this).prev().prop('checked')) { $(target).find('input').prop('checked',false); } else { $(target).find('input').prop('checked',true); } })
visible : 박스를 넘어가도 보여줌
hidden : 박스를 넘어간 부분은 보이지 않음
scroll : 박스를 넘어가든 넘어가지 않든 스크롤바가 나옴
auto : 박스를 넘어가지 않으면 스크롤바가 나오지 않고, 박스를 넘어갈 때에는 스크롤바가 나옴
initial : 기본값으로 설정
inherit : 부모 요소의 속성값을 상속