CSS Grid 可视化练习场 — Uttir
Skip to main content

CSS Grid 可视化练习场

CSS Grid 可视化调试工具。定义行、列和间距,按区域或网格线放置子项,并复制生成的 CSS。

CSS Grid 可视化练习场 — A visual editor for CSS Grid. Define your grid with grid-template-columns and grid-template-rows using the fr, px, %, em, and auto units. Place items by line number, named area, or named line. See the layout update in real time and copy the generated CSS.

All rendering happens locally. The CSS you generate never leaves your browser.

Was CSS Grid 可视化练习场 useful?

CSS Grid 可视化练习场是什么?

A visual editor for CSS Grid. Define your grid with grid-template-columns and grid-template-rows using the fr, px, %, em, and auto units. Place items by line number, named area, or named line. See the layout update in real time and copy the generated CSS.

Useful for learning grid, prototyping a layout before writing code, or debugging a grid issue. The generated CSS is plain — no preprocessor, no framework.

使用方法

  1. Set columns and rows

    Set the number of columns and rows, and their sizes (e.g. 1fr 1fr 200px).

  2. Place items

    Add items with the + button. Each item can be placed by line number (grid-row / grid-column) or by named area.

  3. Edit named areas

    Edit named areas with the textarea below the preview — the syntax is the same as grid-template-areas.

  4. Copy the generated CSS

    Copy the generated CSS from the right-hand panel.

常见问题

相关指南

相关工具

Last reviewed: 2026-11-21