From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/min-height/index.html | 120 +++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 files/ja/web/css/min-height/index.html (limited to 'files/ja/web/css/min-height') diff --git a/files/ja/web/css/min-height/index.html b/files/ja/web/css/min-height/index.html new file mode 100644 index 0000000000..b3ca9be908 --- /dev/null +++ b/files/ja/web/css/min-height/index.html @@ -0,0 +1,120 @@ +--- +title: min-height +slug: Web/CSS/min-height +tags: + - CSS + - CSS Property + - Layout + - Minimum + - Reference + - dimensions + - height + - min-height + - 'recipe:css-property' + - size +translation_of: Web/CSS/min-height +--- +
{{CSSRef}}
+ +

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

+ +
{{EmbedInteractiveExample("pages/css/min-height.html")}}
+ + + +

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

+ +

構文

+ +
/* <length> 値 */
+min-height: 3.5em;
+
+/* <percentage> 値 */
+min-height: 10%;
+
+/* キーワード値 */
+min-height: max-content;
+min-height: min-content;
+min-height: fit-content(20em);
+
+/* グローバル値 */
+min-height: inherit;
+min-height: initial;
+min-height: unset;
+
+ +

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

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

min-height の設定

+ +
table { min-height: 75%; }
+
+form { min-height: 0; }
+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS4 Sizing', '#width-height-keywords', 'min-height')}}{{Spec2('CSS4 Sizing')}}
{{SpecName('CSS3 Sizing', '#width-height-keywords', 'min-height')}}{{Spec2('CSS3 Sizing')}}キーワード max-content, min-content, fit-content を追加。
{{SpecName('CSS2.1', 'visudet.html#min-max-heights', 'min-height')}}{{Spec2('CSS2.1')}}初回定義
+ +

ブラウザーの互換性

+ + + +

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

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf