24.03.21 26일차
목차
1. Remove
- remove
- empty
2. CSS Classes
- addClass
- removeClass
- toggleClass
3. CSS
4. Dimensions (면적, 넓이)
- .width()
- .innerWidth()
- .outerWidth()
- .outerWidth(true)
1. Remove
1. remove : 전체 삭제
2. empty : layer 틀은 놔두고 내용만 삭제
3. class 삭제
4. 여러 클래스 삭제
2. CSS Classes
1. addClass
여러 클래스 동시에 추가
2. removeClass : 클래스 삭제
3. toggleClass : 선택한 요소의 클래스 값 추가 제거를 반복하는 것
3. CSS
1. css 색상가져오기
* 세가지 색상이 있으면 첫번째 색상만 가져오기 가능
2. css 글자크기 조정
4. Dimensions (면적, 넓이)
.width() : 요소의 크기
.innerWidth() : 요소의 width 값 + padding 값
.outerWidth() : 요소의 width 값 + padding 값 + border 값
.outerWidth(true) : 요소의 width 값 + padding 값 + border 값 + margin 값
1. width&height : 가로세로 길이
2. innerWidth & innerHeight : 가로세로 안쪽 여백까지 모두 포함
3. outerWidth & outerHeight : 가로세로 안쪽 여백과 테두리의 두께까지 포함된 값
4. outerWidth(true) & outerHeigh(true) : 가로세로 안쪽 여백과 테두리, 바깥쪽여백의 두께까지 포함된 값
window 크기 확인
사이즈 늘리기
[jQuery] Empty | Delete | Detach | Each | Is (0) | 2024.03.27 |
---|---|
[jQuery] JavaScript & jQuery (0) | 2024.03.22 |
[JQuery] Add (0) | 2024.03.20 |
[JQuery] Get | Set (0) | 2024.03.19 |
[JQuery] STOP | CALLBACK | CHAINING (0) | 2024.03.19 |