Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- br 태그
- css
- width속성
- focus 의사클래스
- html
- reveal in file explorer
- html tag i
- 전체 선택자
- sub태그
- height속성
- i 태그
- html 태그
- 아두이노
- go live
- id 선택자
- 일반 형제 결합자
- background-color 속성
- Checked 의사 클래스
- iframe
- tag html
- 임베디드
- RGBA
- 인접 형제 결합자
- 자식결합자
- iframe 태그
- not 의사클래스
- sup태그
- Live Server
- RGB
- padding 속성
Archives
- Today
- Total
so woon!
[결합자] 자손 결합자 (Descendant Combinator) 본문
학습일 : 2022. 09. 05
자손 결합자 (Descendant Combinator)
자손 결합자(Descendant Combinator)는 어떠한 부모 선택자에 대한 자손을 선택하기 위해 사용하는 결합자이다.
다음과 같이 작성한다. ("는 없는 것으로 한다.)
"어떠한 부모 선택자" "자손 선택자" {
"속성" : "속성 값";
"속성" : "속성 값";
"속성" : "속성 값";
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>자손 결합자</title>
<style>
div section {
color: red;
}
</style>
</head>
<body>
<div>
<aside>
<nav>
<section>Hi!</section>❤
</nav>
</aside>
</div>
<section>내가 빨간색임</section>❤
</body>
</html>
===============실행결과================
'CSS > 개념정리' 카테고리의 다른 글
[결합자] 인접 형제 결합자 (Adjacent Sibiling Combinator) (0) | 2022.09.06 |
---|---|
[결합자] 일반 형제 결합자 (General Sibiling Combinator) (0) | 2022.09.06 |
[결합자] 자식 결합자 (Child Combinator) (0) | 2022.09.06 |
[선택자] 그룹 선택자 (Group Selector) (0) | 2022.09.06 |
[선택자] 요소 선택자 (Element Selector) (0) | 2022.09.06 |
Comments