diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
commit | da78a9e329e272dedb2400b79a3bdeebff387d47 (patch) | |
tree | e6ef8aa7c43556f55ddfe031a01cf0a8fa271bfe /files/ko/web/css/border-collapse/index.html | |
parent | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (diff) | |
download | translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.gz translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.bz2 translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.zip |
initial commit
Diffstat (limited to 'files/ko/web/css/border-collapse/index.html')
-rw-r--r-- | files/ko/web/css/border-collapse/index.html | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/files/ko/web/css/border-collapse/index.html b/files/ko/web/css/border-collapse/index.html new file mode 100644 index 0000000000..8f024cf916 --- /dev/null +++ b/files/ko/web/css/border-collapse/index.html @@ -0,0 +1,148 @@ +--- +title: border-collapse +slug: Web/CSS/border-collapse +tags: + - CSS + - CSS Borders + - CSS Property + - CSS Tables + - Reference +translation_of: Web/CSS/border-collapse +--- +<div>{{CSSRef}}</div> + +<p><strong><code>border-collapse</code></strong> CSS 속성은 표 테두리(border)가 분리(separated) 또는 상쇄(collapsed)될 지를 결정합니다. 분리 모델에서는, 인접한 셀은 각각 자신의 고유(distinct) 테두리가 있습니다. 상쇄 모델에서는, 인접한 표 셀은 테두리를 공유합니다.</p> + +<div>{{EmbedInteractiveExample("pages/css/border-collapse.html")}}</div> + + + +<p>분리(<em>separated</em>) 모델은 HTML 표 테두리 전통 모델입니다. 인접 셀은 각각 자신의 고유 테두리가 있습니다. 그 사이의 간격은 {{ Cssxref("border-spacing") }} 속성에 의해 주어집니다.</p> + +<p>상쇄(<em>collapsed</em>) 테두리 모델에서는, 인접 표 셀은 테두리를 공유합니다. 그 모델에서는, <code>inset</code>의 {{ Cssxref("border-style") }} 값은 <code>groove</code>처럼, <code>outset</code>은 <code>ridge</code>처럼 행동합니다.</p> + +<h2 id="구문">구문</h2> + +<pre class="brush: css">/* Keyword values */ +border-collapse: collapse; +border-collapse: separate; + +/* Global values */ +border-collapse: inherit; +border-collapse: initial; +border-collapse: unset;</pre> + +<h3 id="값">값</h3> + +<dl> + <dt><code>separate</code></dt> + <dd>분리된 테두리 표 렌더링 모델의 사용을 요청하는 키워드입니다. 기본값입니다.</dd> + <dt><code>collapse</code></dt> + <dd>상쇄된 테두리 표 렌더링 모델의 사용을 요청하는 키워드입니다.</dd> +</dl> + +<h3 id="형식_구문">형식 구문</h3> + +<pre class="syntaxbox">{{csssyntax}}</pre> + +<h2 id="예제">예제</h2> + +<h3 id="A_colorful_table_of_browser_engines" name="A_colorful_table_of_browser_engines">브라우저 엔진의 다색 표</h3> + +<h4 id="HTML">HTML</h4> + +<pre class="brush: html"><table class="separate"> + <caption><code>border-collapse: separate</code></caption> + <tbody> + <tr><th>Browser</th> <th>Layout Engine</th> + </tr> + <tr><td class="fx">Firefox</td> <td class="gk">Gecko</td> + </tr> + <tr><td class="ie">Internet Explorer</td> <td class="tr">Trident</td> + </tr> + <tr><td class="sa">Safari</td> <td class="wk">Webkit</td> + </tr> + <tr><td class="ch">Chrome</td> <td class="bk">Blink</td> + </tr> + <tr><td class="op">Opera</td> <td class="bk">Blink</td> + </tr> + </tbody> +</table> +<table class="collapse"> + <caption><code>border-collapse: collapse</code></caption> + <tbody> + <tr><th>Browser</th> <th>Layout Engine</th> + </tr> + <tr><td class="fx">Firefox</td> <td class="gk">Gecko</td> + </tr> + <tr><td class="ie">Internet Explorer</td> <td class="tr">Trident</td> + </tr> + <tr><td class="sa">Safari</td> <td class="wk">Webkit</td> + </tr> + <tr><td class="ch">Chrome</td> <td class="bk">Blink</td> + </tr> + <tr><td class="op">Opera</td> <td class="bk">Blink</td> + </tr> + </tbody> +</table></pre> + +<h4 id="CSS">CSS</h4> + +<pre class="brush: css">.collapse { + border-collapse: collapse; +} +.separate { + border-collapse: separate; +} +table { + display: inline-table; + margin: 1em; + border: dashed 6px; + border-width: 6px; +} +table th, table td { + border: solid 3px; +} +.fx { border-color: orange blue; } +.gk { border-color: black red; } +.ie { border-color: blue gold; } +.tr { border-color: aqua; } +.sa { border-color: silver blue; } +.wk { border-color: gold blue; } +.ch { border-color: red yellow green blue; } +.bk { border-color: navy blue teal aqua; } +.op { border-color: red; }</pre> + +<h4 id="결과">결과</h4> + +<p>{{ EmbedLiveSample('A_colorful_table_of_browser_engines', 400, 300) }}</p> + +<h2 id="명세">명세</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">명세</th> + <th scope="col">상태</th> + <th scope="col">설명</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ SpecName('CSS2.1', 'tables.html#borders', 'border-collapse') }}</td> + <td>{{ Spec2('CSS2.1') }}</td> + <td>초기 정의</td> + </tr> + </tbody> +</table> + +<h2 id="브라우저_호환성">브라우저 호환성</h2> + +<p>{{Compat("css.properties.border-collapse")}}</p> + +<h2 id="같이_보기">같이 보기</h2> + +<ul> + <li>{{cssxref("border-spacing")}}, {{cssxref("border-style")}}</li> + <li>The <code>border-collapse</code> property alters the appearance of the {{htmlelement("table")}} HTML element.</li> +</ul> |