From b878d4a1cf8abdbaef200f64391ed6af2d80c2a6 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 16 Nov 2021 10:16:30 +0900 Subject: CSS Box Sizing 関連のリファレンスを更新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 2021/11/14 時点の英語版に同期 --- files/ja/web/css/min-width/index.md | 143 +++++++++++++++--------------------- 1 file changed, 60 insertions(+), 83 deletions(-) (limited to 'files/ja/web/css/min-width') diff --git a/files/ja/web/css/min-width/index.md b/files/ja/web/css/min-width/index.md index 9660976dc7..512ec3ee29 100644 --- a/files/ja/web/css/min-width/index.md +++ b/files/ja/web/css/min-width/index.md @@ -3,27 +3,34 @@ title: min-width slug: Web/CSS/min-width tags: - CSS - - CSS Property - CSS プロパティ - - Reference + - 水平 + - レイアウト + - 最小 + - リファレンス + - 寸法 + - min-width + - recipe:css-property + - size + - width +browser-compat: css.properties.min-width translation_of: Web/CSS/min-width --- -
{{CSSRef}}
+{{CSSRef}} -

min-widthCSS のプロパティで、要素の最小幅を設定します。これは {{Cssxref("width")}} プロパティの使用値が、min-width で指定した値を下回ることを防ぎます。

+**`min-width`** は [CSS](/ja/docs/Web/CSS) のプロパティで、要素の最小幅を設定します。これは {{Cssxref("width")}} プロパティの[使用値](/ja/docs/Web/CSS/used_value)が、`min-width` で指定した値を下回ることを防ぎます。 -
{{EmbedInteractiveExample("pages/css/min-width.html")}}
+{{EmbedInteractiveExample("pages/css/min-width.html")}} - +`min-width` の値が {{Cssxref("max-width")}} および {{Cssxref("width")}} の値より大きい場合は、`min-width` の値が要素の幅になります。 -

min-width の値が {{Cssxref("max-width")}} および {{Cssxref("width")}} の値より大きい場合は、min-width の値が要素の幅になります。

+## 構文 -

構文

- -
/* <length> 値 */
+```css
+/*  値 */
 min-width: 3.5em;
 
-/* <percentage> 値 */
+/*  値 */
 min-width: 10%;
 
 /* キーワード値 */
@@ -34,82 +41,52 @@ min-width: fit-content(20em);
 /* グローバル値 */
 min-width: inherit;
 min-width: initial;
+min-width: revert;
 min-width: unset;
-
- -

- -
-
{{cssxref("<length>")}}
-
min-width を絶対的な値で定義します。
-
{{cssxref("<percentage>")}}
-
min-width を包含ブロックの幅に対するパーセント値で定義します。
-
auto
-
ブラウザーが指定された要素の min-width を計算して選択します。
-
none
-
ボックスの寸法を制限しません。
-
max-content
-
内容物が推奨する min-width です。
-
min-content
-
内容物の最小の min-width です。
-
fit-content({{cssxref("<length-percentage>")}})
-
利用可能な空白を指定された引数で置き換えた fit-content 式を使用します。すなわち、 min(max-content, max(min-content, 引数)) です。
-
- -

形式文法

+``` + +### 値 + +- {{cssxref("<length>")}} + - : `min-width` を絶対的な値で定義します。 +- {{cssxref("<percentage>")}} + - : `min-width` を包含ブロックの幅に対するパーセント値で定義します。 +- `auto` + - : ブラウザーが指定された要素の `min-width` を計算して選択します。 +- `max-content` + - : 内容物が推奨する `min-width` です。 +- `min-content` + - : 内容物の最小の `min-width` です。 +- `fit-content({{cssxref("<length-percentage>")}})` + - : 利用可能な空白を指定された引数で置き換えた `fit-content` 式を使用します。すなわち、 `min(max-content, max(min-content, 引数))` です。 + +## 公式定義 + +{{cssinfo}} + +## 形式文法 {{csssyntax}} -

+## 例 + +### 要素の最小幅を設定 -
table { min-width: 75%; }
+```css
+table { min-width: 75%; }
 
 form { min-width: 0; }
-
- -

仕様書

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS4 Sizing', '#width-height-keywords', 'min-width')}}{{Spec2('CSS4 Sizing')}}
{{SpecName('CSS3 Sizing', '#width-height-keywords', 'min-width')}}{{Spec2('CSS3 Sizing')}}キーワード max-content, min-content, fit-content を追加。
{{SpecName('CSS3 Flexbox', '#min-size-auto', 'min-width')}}{{Spec2('CSS3 Flexbox')}}キーワード auto を追加し、初期値として使用する
{{SpecName('CSS2.1', 'visudet.html#min-max-widths', 'min-width')}}{{Spec2('CSS2.1')}}初回定義
- -

{{cssinfo}}

- -

ブラウザーの互換性

- -

{{Compat("css.properties.min-width")}}

- -

関連情報

- - +``` + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{Cssxref("width")}}, {{Cssxref("max-width")}} +- [ボックスモデル](/ja/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model), {{Cssxref("box-sizing")}} -- cgit v1.2.3-54-g00ecf