일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 이미지텍스트변환
- css3 animate
- 애니메니션효과
- 하단fixed
- 서브라임+git
- 아이프레임유튜브썸네일
- css애니메이션효과
- 하단특정위치
- sublime+git
- 아이옷
- PC에서텍스트추출
- 서브라임git
- 특정위치고정
- youtubeiframethumbnail
- sublimetextgit연동
- 아기옷
- 텍스트추출
- 해시스크롤이동
- 아이프레임유튜브썸네일변경
- 서브라임git연동하는 방법
- youtubethumbnail
- 달콤한바느질
- scroll이동
- 하단스크롤
- 스크롤하단
- 이미지텍스트추출
- css3예제
- css효과
- 앵커이동
- 연동하는방법
Archives
- Today
- Total
개인공간
[제이쿼리] 체크박스/라디오 디자인입히기 본문
반응형




HTML
header HTML
CSS
.checks {position: relative;} .checks input[type="checkbox"] { /* 실제 체크박스는 화면에서 숨김 */ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip:rect(0,0,0,0); border: 0 } .checks input[type="checkbox"] + label { display: inline-block; position: relative; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } .checks input[type="checkbox"] + label:before { /* 가짜 체크박스 */ content: ' '; display: inline-block; width: 21px; /* 체크박스의 너비를 지정 */ height: 21px; /* 체크박스의 높이를 지정 */ line-height: 21px; /* 세로정렬을 위해 높이값과 일치 */ margin: -2px 8px 0 0; text-align: center; vertical-align: middle; background: #fafafa; border: 1px solid #cacece; border-radius : 3px; box-shadow: 0px 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05); } .checks input[type="checkbox"] + label:active:before, .checks input[type="checkbox"]:checked + label:active:before { box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1); } .checks input[type="checkbox"]:checked + label:before { /* 체크박스를 체크했을때 */ content: '\2714'; /* 체크표시 유니코드 사용 */ color: #99a1a7; text-shadow: 1px 1px #fff; background: #e9ecee; border-color: #adb8c0; box-shadow: 0px 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1); } .checks.small input[type="checkbox"] + label { font-size: 12px; } .checks.small input[type="checkbox"] + label:before { width: 17px; height: 17px; line-height: 17px; font-size: 11px; } .checks.etrans input[type="checkbox"] + label { padding-left: 30px; } .checks.etrans input[type="checkbox"] + label:before { position: absolute; left: 0; top: 0; margin-top: 0; opacity: .6; box-shadow: none; border-color: #6cc0e5; -webkit-transition: all .12s, border-color .08s; transition: all .12s, border-color .08s; } .checks.etrans input[type="checkbox"]:checked + label:before { position: absolute; content: ""; width: 10px; top: -5px; left: 5px; border-radius: 0; opacity:1; background: transparent; border-color:transparent #6cc0e5 #6cc0e5 transparent; border-top-color:transparent; border-left-color:transparent; -ms-transform:rotate(45deg); -webkit-transform:rotate(45deg); transform:rotate(45deg); } .no-csstransforms .checks.etrans input[type="checkbox"]:checked + label:before { /*content:"\2713";*/ content: "\2714"; top: 0; left: 0; width: 21px; line-height: 21px; color: #6cc0e5; text-align: center; border: 1px solid #6cc0e5; }
반응형
'IT정보 > jQuery_javaScript' 카테고리의 다른 글
bx슬라이드 정리된 (0) | 2019.07.23 |
---|---|
[제이쿼리] 숫자만 입력받기 (0) | 2018.10.29 |
[제이쿼리] 셀렉트박스 디자인 (0) | 2016.02.01 |
모바일 ios innerWidth 버그 (0) | 2015.12.08 |
[제이쿼리] 레이어팝업 플러그인 (0) | 2015.11.19 |