aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/css/child_combinator
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:17 -0500
commitda78a9e329e272dedb2400b79a3bdeebff387d47 (patch)
treee6ef8aa7c43556f55ddfe031a01cf0a8fa271bfe /files/ko/web/css/child_combinator
parent1109132f09d75da9a28b649c7677bb6ce07c40c0 (diff)
downloadtranslated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.gz
translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.bz2
translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.zip
initial commit
Diffstat (limited to 'files/ko/web/css/child_combinator')
-rw-r--r--files/ko/web/css/child_combinator/index.html92
1 files changed, 92 insertions, 0 deletions
diff --git a/files/ko/web/css/child_combinator/index.html b/files/ko/web/css/child_combinator/index.html
new file mode 100644
index 0000000000..dceec68d92
--- /dev/null
+++ b/files/ko/web/css/child_combinator/index.html
@@ -0,0 +1,92 @@
+---
+title: 자식 결합자
+slug: Web/CSS/Child_combinator
+tags:
+ - CSS
+ - Reference
+ - Selectors
+translation_of: Web/CSS/Child_combinator
+---
+<div>{{CSSRef("Selectors")}}</div>
+
+<p><strong>자식 결합자</strong>(<code>&gt;</code>)는 두 개의 CSS 선택자 사이에 위치하여 뒤쪽 선택자의 요소가 앞쪽 선택자 요소의 바로 밑에 위치할 경우에만 선택합니다.</p>
+
+<pre class="brush: css no-line-numbers">/* List items that are children of the "my-things" list */
+ul.my-things &gt; li {
+ margin: 2em;
+}</pre>
+
+<p>뒤쪽 선택자의 요소는 앞쪽 선택자 요소의 바로 아래에 위치해야 하므로, DOM 트리의 깊이에 상관하지 않고 아래의 모든 요소를 선택하는 <a href="/ko/docs/Web/CSS/Descendant_combinator">자손 결합자</a>보다 더 엄격합니다.</p>
+
+<h2 id="구문">구문</h2>
+
+<pre class="syntaxbox">selector1 &gt; selector2 { <em>style properties</em> }
+</pre>
+
+<h2 id="예제">예제</h2>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">span {
+ background-color: white;
+}
+
+div &gt; span {
+ background-color: DodgerBlue;
+}
+</pre>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html">&lt;div&gt;
+ &lt;span&gt;Span #1, in the div.
+ &lt;span&gt;Span #2, in the span that's in the div.&lt;/span&gt;
+ &lt;/span&gt;
+&lt;/div&gt;
+&lt;span&gt;Span #3, not in the div at all.&lt;/span&gt;
+</pre>
+
+<h3 id="결과">결과</h3>
+
+<p>{{EmbedLiveSample("예제", "100%", 100)}}</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", "#child-combinators", "child combinator")}}</td>
+ <td>{{Spec2("CSS4 Selectors")}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName("CSS3 Selectors", "#child-combinators", "child combinators")}}</td>
+ <td>{{Spec2("CSS3 Selectors")}}</td>
+ <td>No change.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName("CSS2.1", "selector.html#child-selectors", "child selectors")}}</td>
+ <td>{{Spec2("CSS2.1")}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="브라우저_호환성">브라우저 호환성</h2>
+
+
+
+<p>{{Compat("css.selectors.child")}}</p>
+
+<h2 id="같이_보기">같이 보기</h2>
+
+<ul>
+ <li><a href="/ko/docs/Web/CSS/Descendant_combinator">자손 결합자</a></li>
+</ul>