diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-03 23:20:43 +0900 |
|---|---|---|
| committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-11 11:50:21 +0900 |
| commit | 366a93a84df26a3bc08bfd85a7d87dc7c450e2cc (patch) | |
| tree | e46ef3f875a105e340ec4d3657391aac8680cedc /files/ja/web/css/_colon_default/index.html | |
| parent | 14e04853513fcb8eb12f349725b4d088a5145b70 (diff) | |
| download | translated-content-366a93a84df26a3bc08bfd85a7d87dc7c450e2cc.tar.gz translated-content-366a93a84df26a3bc08bfd85a7d87dc7c450e2cc.tar.bz2 translated-content-366a93a84df26a3bc08bfd85a7d87dc7c450e2cc.zip | |
入力擬似クラスの文書を変換準備
Diffstat (limited to 'files/ja/web/css/_colon_default/index.html')
| -rw-r--r-- | files/ja/web/css/_colon_default/index.html | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/files/ja/web/css/_colon_default/index.html b/files/ja/web/css/_colon_default/index.html deleted file mode 100644 index 648dff2dc9..0000000000 --- a/files/ja/web/css/_colon_default/index.html +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: ':default' -slug: 'Web/CSS/:default' -tags: - - CSS - - CSS 基本ユーザーインターフェイス - - Layout - - Pseudo-class - - Reference - - Web - - セレクター - - 疑似クラス -translation_of: 'Web/CSS/:default' ---- -<div>{{CSSRef}}</div> - -<p><strong><code>:default</code></strong> は <a href="/ja/docs/Web/CSS">CSS</a> の<a href="/ja/docs/Web/CSS/Pseudo-classes">擬似クラス</a>で、関連する要素のグループ内で既定となっているフォーム上の要素を選択します。</p> - -<p>このセレクターが何に一致するかについては、 <a href="https://html.spec.whatwg.org/multipage/semantics-other.html#selector-default">HTML Standard §4.16.3 Pseudo-classes</a> で定義されています。 — {{htmlelement("button")}}、 <code><a href="/ja/docs/Web/HTML/Element/input/checkbox"><input type="checkbox"></a></code>、 <code><a href="/ja/docs/Web/HTML/Element/input/radio"><input type="radio"></a></code>、 {{htmlelement("option")}} 要素に一致させることができます。</p> - -<ul> - <li>既定の option 要素は <code>selected</code> 属性が付いた最初のもの、または DOM 順で最初の有効な選択肢です。 <code>multiple</code> が付いた {{htmlelement("select")}} は、複数の <code>selected</code> がついた選択肢を持つことができますので、すべてが <code>:default</code> に一致します。</li> - <li><code><input type="checkbox"></code> と <code><input type="radio"></code> は <code>checked</code> 属性があるときに一致します。</li> - <li>{{htmlelement("button")}} は {{htmlelement("form")}} の <a href="https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission">既定の送信ボタン</a>である場合に一致します。フォームに所属する <code><button></code> のうち、 DOM 順で最初のものです。これはフォームを送信する {{htmlelement("input")}} 型、例えば <code>image</code> または <code>submit</code> にも適用されます。</li> -</ul> - -<h2 id="Syntax" name="Syntax">構文</h2> - -{{csssyntax}} - -<h2 id="Examples" name="Examples">例</h2> - -<h3 id="HTML">HTML</h3> - -<pre class="brush: html notranslate"><fieldset> - <legend>Favorite season</legend> - - <input type="radio" name="season" id="spring"> - <label for="spring">Spring</label> - - <input type="radio" name="season" id="summer" checked> - <label for="summer">Summer</label> - - <input type="radio" name="season" id="fall"> - <label for="fall">Fall</label> - - <input type="radio" name="season" id="winter"> - <label for="winter">Winter</label> -</fieldset> -</pre> - -<h3 id="CSS">CSS</h3> - -<pre class="brush: css notranslate">input:default { - box-shadow: 0 0 2px 1px coral; -} - -input:default + label { - color: coral; -} -</pre> - -<h3 id="Result" name="Result">結果</h3> - -<p>{{EmbedLiveSample("Examples")}}</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('HTML WHATWG', '#selector-default', ':default')}}</td> - <td>{{Spec2('HTML WHATWG')}}</td> - <td>変更なし。</td> - </tr> - <tr> - <td>{{SpecName('HTML5 W3C', '#selector-default', ':default')}}</td> - <td>{{Spec2('HTML5 W3C')}}</td> - <td>HTML に関する意味付けと制約検証を定義。</td> - </tr> - <tr> - <td>{{SpecName('CSS4 Selectors', '#default-pseudo', ':default')}}</td> - <td>{{Spec2('CSS4 Selectors')}}</td> - <td>変更なし。</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> - -<div> -<p>{{Compat("css.selectors.default")}}</p> - -<h2 id="See_also" name="See_also">関連情報</h2> - -<ul> - <li><a href="/ja/docs/Learn/Forms">ウェブフォーム — ユーザーデータでの作業</a></li> - <li><a href="/ja/docs/Learn/Forms/Styling_web_forms">ウェブフォームのスタイル付け</a></li> - <li>関連する HTML 要素: {{htmlelement("button")}}, <code><a href="/ja/docs/Web/HTML/Element/input/checkbox"><input type="checkbox"></a></code>, <code><a href="/ja/docs/Web/HTML/Element/input/radio"><input type="radio"></a></code>, {{htmlelement("option")}}</li> -</ul> -</div> |
