diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-06 01:46:13 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-12 22:59:39 +0900 |
| commit | 3cf333fe1acf5afa23dac5c2beaa20398e08a25f (patch) | |
| tree | 606b5bc56f9d3b8fb4eeacb7234b1318c72d9358 /files/ja/web/css/id_selectors/index.html | |
| parent | 4660b8576d572111e1eacc160ea3f9cf1e5ca1b3 (diff) | |
| download | translated-content-3cf333fe1acf5afa23dac5c2beaa20398e08a25f.tar.gz translated-content-3cf333fe1acf5afa23dac5c2beaa20398e08a25f.tar.bz2 translated-content-3cf333fe1acf5afa23dac5c2beaa20398e08a25f.zip | |
各セレクターの記事を変換準備
Diffstat (limited to 'files/ja/web/css/id_selectors/index.html')
| -rw-r--r-- | files/ja/web/css/id_selectors/index.html | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/files/ja/web/css/id_selectors/index.html b/files/ja/web/css/id_selectors/index.html deleted file mode 100644 index 6557f2663b..0000000000 --- a/files/ja/web/css/id_selectors/index.html +++ /dev/null @@ -1,83 +0,0 @@ ---- -title: ID セレクター -slug: Web/CSS/ID_selectors -tags: - - CSS - - Reference - - Selector - - Selectors -translation_of: Web/CSS/ID_selectors ---- -<div>{{CSSRef}}</div> - -<p>CSS の <strong>ID セレクター</strong> (ID selector) は、 {{htmlattrxref("id")}} 属性の値に基づいて要素と一致します。選択される要素の <code>id</code> 属性は、セレクターで指定した値と完全一致していなければなりません。</p> - -<pre class="brush: css no-line-numbers notranslate">/* id="demo" のついた要素 */ -#demo { - border: red 2px solid; -}</pre> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox notranslate">#id_value { <em>スタイルプロパティ</em> }</pre> - -<p>なお、これは次の{{Cssxref("Attribute_selectors", "属性セレクター")}}と等価です (ただし、詳細度は異なります)。</p> - -<pre class="syntaxbox notranslate">[id=id_value] { <em>スタイルプロパティ</em> }</pre> - -<h2 id="Examples" name="Examples">例</h2> - -<h3 id="CSS">CSS</h3> - -<pre class="brush: css notranslate">#identified { - background-color: skyblue; -} -</pre> - -<h3 id="HTML">HTML</h3> - -<pre class="brush: html notranslate"><div id="identified">これは特別な ID がついています!</div> -<div>これは単なる普通の div です。</div> -</pre> - -<h3 id="Result" name="Result">結果</h3> - -<p>{{EmbedLiveSample("Examples", '100%', 50)}}</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", "#id-selectors", "ID selectors")}}</td> - <td>{{Spec2("CSS4 Selectors")}}</td> - <td></td> - </tr> - <tr> - <td>{{SpecName("CSS3 Selectors", "#id-selectors", "ID selectors")}}</td> - <td>{{Spec2("CSS3 Selectors")}}</td> - <td></td> - </tr> - <tr> - <td>{{SpecName("CSS2.1", "selector.html#id-selectors", "ID selectors")}}</td> - <td>{{Spec2("CSS2.1")}}</td> - <td></td> - </tr> - <tr> - <td>{{SpecName("CSS1", "#id-as-selector", "ID selectors")}}</td> - <td>{{Spec2("CSS1")}}</td> - <td>初回定義</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> - -<p>{{Compat("css.selectors.id")}}</p> |
