レイアウトとCSS コア A2 · 正式仕様 プラットフォーム: ウェブ

minmax()

minmax()

`minmax()` は、行や列に最小サイズと最大サイズの両方を設定できる CSS グリッド関数です。

仕組みを見る
そう呼ぶかもしれません minmax()グリッドトラック範囲有界グリッドトラック

仕組みを見る

元の作業例minmax()

もう一つの例

ケースグリッドは `repeat(auto-fit,minmax(min(18rem,100%),1fr))` を使用します。デスクトップでは 4 枚のカードが 1 行に並び、1 枚のカードは 320px で収まり、ページがはみ出ることはありません。非常に長いクライアント名はトラックを広げずにカード内で折り返されます。

主な部分

  1. 01最小トラックサイズ
  2. 02最大トラックサイズ
  3. 03利用可能空間の分布

以下の場合に使用します

すべてのブレークポイントで異なる列幅を書く代わりに、グリッドトラックに柔軟な制限を与えるために使用してください。

以下の場合は使用しないでください

最小スロットに`1fr`のような柔軟な値を設定しないでください。コンテンツの自動最小サイズも確認してください。

コードで使用する名前

grid-template-columns: repeat(auto-fit, minmax(minimum, maximum))

出荷前に

Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.

コピーできるリクエスト

Outcome:Complete the task with minmax() (minmax())。 User context:ケースグリッドは `repeat(auto-fit,minmax(min(18rem,100%),1fr))` を使用します。デスクトップでは 4 枚のカードが 1 行に並び、1 枚のカードは 320px で収まり、ページがはみ出ることはありません。非常に長いクライアント名はトラックを広げずにカード内で折り返されます。 Design concept to apply:minmax() (minmax())。 Why it fits:すべてのブレークポイントで異なる列幅を書く代わりに、グリッドトラックに柔軟な制限を与えるために使用してください。 Do not use it when:最小スロットに`1fr`のような柔軟な値を設定しないでください。コンテンツの自動最小サイズも確認してください。 Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary):きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。 Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.

このリクエストを確認する

Review how minmax() (minmax()) is used now. Definition: `minmax()` は、行や列に最小サイズと最大サイズの両方を設定できる CSS グリッド関数です。 Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.

A2
この用語はどれくらい公式か?

正式仕様

公開されてバージョン管理された公式仕様が、リストされた技術範囲でこの用語を定めているよ。

きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。

範囲
ソースがカバーするもののみ:正式名、定義、セマンティクス、実装
ドキュメントステータス
草稿
チェックオン
2026-07-30

証拠の情報源と範囲

権威のある情報源 + 用語参照 · W3C CSS Working Group · 草稿 CSS Grid Layout Module Level 2 — minmax() track sizing function minmax() track sizing function 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 直接用語参照 ソースの範囲: 正式名, 定義, セマンティクス, 実装 権威のある情報源 · W3C CSS Working Group · 草稿 CSS Grid Layout Module Level 2 範囲: 正式名、定義、セマンティクス、実装 ここでの役割: 指定された範囲内の権威 ソースの範囲: 正式名, 定義, セマンティクス, 実装

自分でコピーする

ブラウザはこれをコピーできませんでした。下のリクエストを選択して自分でコピーしてください。