diff options
Diffstat (limited to 'files/ja/web/css/column_combinator/index.html')
| -rw-r--r-- | files/ja/web/css/column_combinator/index.html | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/files/ja/web/css/column_combinator/index.html b/files/ja/web/css/column_combinator/index.html new file mode 100644 index 0000000000..8e533ec13e --- /dev/null +++ b/files/ja/web/css/column_combinator/index.html @@ -0,0 +1,99 @@ +--- +title: 列結合子 +slug: Web/CSS/Column_combinator +tags: + - CSS + - Experimental + - Reference + - Selectors + - セレクター + - 表 +translation_of: Web/CSS/Column_combinator +--- +<div>{{CSSRef("Selectors")}}{{Draft}}{{SeeCompatTable}}</div> + +<p><ruby><strong>列結合子</strong><rp> (</rp><rt>column combinator</rt><rp>) </rp></ruby> (<code>||</code>) は、二つの CSS セレクターの間に配置されます。前者のセレクターに一致する列要素に所属する、後者のセレクターに一致する要素に一致します。</p> + +<pre class="brush: css">/* 表の "selected" クラスの列に所属するセル */ +col.selected || td { + background: gray; +} +</pre> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><var>column-selector</var> || <var>cell-selector</var> { + <var>/* スタイルプロパティ */</var> +} +</pre> + +<h2 id="Examples">Examples</h2> + +<h3 id="HTML">HTML</h3> + +<pre class="brush: html"><table border="1"> + <colgroup> + <col span="2"/> + <col class="selected"/> + </colgroup> + <tbody> + <tr> + <td>A + <td>B + <td>C + </tr> + <tr> + <td colspan="2">D</td> + <td>E</td> + </tr> + <tr> + <td>F</td> + <td colspan="2">G</td> + </tr> + </tbody> +</table></pre> + +<h3 id="CSS">CSS</h3> + +<pre class="brush: css">col.selected || td { + background: gray; + color: white; + font-weight: bold; +}</pre> + +<h3 id="Result" name="Result">結果</h3> + +<p>{{EmbedLiveSample("Examples", "100%")}}</p> + +<h2 id="Specifications" name="Specifications">仕様書</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("CSS4 Selectors", "#the-column-combinator", "column combinator")}}</td> + <td>{{Spec2("CSS4 Selectors")}}</td> + <td>初回定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> + +<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力してくださるのであれば、 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> + +<p>{{Compat("css.selectors.column")}}</p> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li>{{HTMLElement("col")}}</li> + <li>{{HTMLElement("colgroup")}}</li> + <li>{{CSSxRef("grid")}}</li> +</ul> |
