From 7d2c0d3e42d5bc62163a415da456c07c39bd63b6 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 16 Nov 2021 00:30:59 +0900 Subject: CSS Sizing に関するプロパティの変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/max-height/index.html | 130 --------------------------------- files/ja/web/css/max-height/index.md | 130 +++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+), 130 deletions(-) delete mode 100644 files/ja/web/css/max-height/index.html create mode 100644 files/ja/web/css/max-height/index.md (limited to 'files/ja/web/css/max-height') diff --git a/files/ja/web/css/max-height/index.html b/files/ja/web/css/max-height/index.html deleted file mode 100644 index fb379ee784..0000000000 --- a/files/ja/web/css/max-height/index.html +++ /dev/null @@ -1,130 +0,0 @@ ---- -title: max-height -slug: Web/CSS/max-height -tags: - - CSS - - CSS Property - - Layout - - Maximum - - Reference - - dimensions - - height - - limit - - max-height - - 'recipe:css-property' - - size -translation_of: Web/CSS/max-height ---- -
{{CSSRef}}
- -

max-heightCSS のプロパティで、要素の最大高を設定します。これは {{Cssxref("height")}} プロパティの使用値が、 max-height に指定した値を上回ることを防ぎます。

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

max-height は {{cssxref("height")}} を上書きしますが、 {{cssxref("min-height")}} は max-height を上書きします。

- -

構文

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

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

アクセシビリティの考慮

- -

テキストを大きくするためにページを拡大したときに、 max-height を設定した要素が切り取られたり、他のコンテンツを覆い隠したりしないことを確認してください。

- - - -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

パーセント値とキーワード値を用いた max-height の設定

- -
table { max-height: 75%; }
-
-form { max-height: none; }
-
- -

仕様書

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

ブラウザーの互換性

- -

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

- -

関連情報

- - diff --git a/files/ja/web/css/max-height/index.md b/files/ja/web/css/max-height/index.md new file mode 100644 index 0000000000..fb379ee784 --- /dev/null +++ b/files/ja/web/css/max-height/index.md @@ -0,0 +1,130 @@ +--- +title: max-height +slug: Web/CSS/max-height +tags: + - CSS + - CSS Property + - Layout + - Maximum + - Reference + - dimensions + - height + - limit + - max-height + - 'recipe:css-property' + - size +translation_of: Web/CSS/max-height +--- +
{{CSSRef}}
+ +

max-heightCSS のプロパティで、要素の最大高を設定します。これは {{Cssxref("height")}} プロパティの使用値が、 max-height に指定した値を上回ることを防ぎます。

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

max-height は {{cssxref("height")}} を上書きしますが、 {{cssxref("min-height")}} は max-height を上書きします。

+ +

構文

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

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

アクセシビリティの考慮

+ +

テキストを大きくするためにページを拡大したときに、 max-height を設定した要素が切り取られたり、他のコンテンツを覆い隠したりしないことを確認してください。

+ + + +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

パーセント値とキーワード値を用いた max-height の設定

+ +
table { max-height: 75%; }
+
+form { max-height: none; }
+
+ +

仕様書

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

ブラウザーの互換性

+ +

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

+ +

関連情報

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