aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/css/descendant_combinator/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/css/descendant_combinator/index.html')
-rw-r--r--files/ko/web/css/descendant_combinator/index.html108
1 files changed, 108 insertions, 0 deletions
diff --git a/files/ko/web/css/descendant_combinator/index.html b/files/ko/web/css/descendant_combinator/index.html
new file mode 100644
index 0000000000..2d351f2c8e
--- /dev/null
+++ b/files/ko/web/css/descendant_combinator/index.html
@@ -0,0 +1,108 @@
+---
+title: 자손 결합자
+slug: Web/CSS/Descendant_combinator
+tags:
+ - CSS
+ - Reference
+ - Selectors
+translation_of: Web/CSS/Descendant_combinator
+---
+<div>{{CSSRef("Selectors")}}</div>
+
+<p><span class="seoSummary">보통 한 칸의 공백 문자로 표현하는 <strong>자손 결합자</strong>(<code> </code>)는 두 개의 선택자를 조합하여, 뒤쪽 선택자 요소의 조상(부모, 부모의 부모, 부모의 부모의 부모...)에 앞쪽 선택자 요소가 존재할 경우 선택합니다.</span> 자손 결합자를 활용하는 선택자를 자손 선택자라고 부릅니다.</p>
+
+<pre class="brush: css no-line-numbers">/* List items that are descendants of the "my-things" list */
+ul.my-things li {
+ margin: 2em;
+}</pre>
+
+<p>기술적으로, 자손 결합자는 하나 이상의 {{Glossary("CSS")}} 공백 문자이므로 스페이스 외에도 캐리지 리턴, 폼 피드, 새 줄, 탭 문자도 해당합니다. 또한 결합자를 구성하는 공백 문자는 CSS 주석을 임의의 개수만큼 포함할 수 있습니다.</p>
+
+<h2 id="구문">구문</h2>
+
+<pre class="syntaxbox"><var>selector1</var> <var>selector2</var> {
+ <var>/* property declarations */</var>
+}</pre>
+
+<h2 id="예제">예제</h2>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">li {
+ list-style-type: disc;
+}
+
+li li {
+ list-style-type: circle;
+}
+</pre>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html">&lt;ul&gt;
+ &lt;li&gt;
+ &lt;div&gt;Item 1&lt;/div&gt;
+ &lt;ul&gt;
+ &lt;li&gt;Subitem A&lt;/li&gt;
+ &lt;li&gt;Subitem B&lt;/li&gt;
+ &lt;/ul&gt;
+ &lt;/li&gt;
+ &lt;li&gt;
+ &lt;div&gt;Item 2&lt;/div&gt;
+ &lt;ul&gt;
+ &lt;li&gt;Subitem A&lt;/li&gt;
+ &lt;li&gt;Subitem B&lt;/li&gt;
+ &lt;/ul&gt;
+ &lt;/li&gt;
+&lt;/ul&gt;
+</pre>
+
+<h3 id="결과">결과</h3>
+
+<p>{{EmbedLiveSample("예제", "100%", 160)}}</p>
+
+<h2 id="명세">명세</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("CSS4 Selectors", "#descendant-combinators", "descendant combinator")}}</td>
+ <td>{{Spec2("CSS4 Selectors")}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName("CSS3 Selectors", "#descendant-combinators", "descendant combinator")}}</td>
+ <td>{{Spec2("CSS3 Selectors")}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName("CSS2.1", "selector.html#descendant-selectors", "descendant selectors")}}</td>
+ <td>{{Spec2("CSS2.1")}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName("CSS1", "#contextual-selectors", "contextual selectors")}}</td>
+ <td>{{Spec2("CSS1")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="브라우저_호환성">브라우저 호환성</h2>
+
+
+
+<p>{{Compat("css.selectors.descendant")}}</p>
+
+<h2 id="같이_보기">같이 보기</h2>
+
+<ul>
+ <li><a href="/ko/docs/Web/CSS/Child_combinator">자식 결합자</a></li>
+</ul>