← 返回功能
Pro

Grid/Flex 可视化

检查带有显示间距和对齐的叠加层的 CSS Grid 和 Flexbox 容器。

CSS Grid and Flexbox are the foundations of modern web layout, but they're invisible by default. You can't see grid lines, flex axes, or gap values just by looking at a page. Browser DevTools offer some grid overlay features, but they require you to find the container in the Elements panel first, enable the overlay manually, and only show one container at a time. Grid/Flex Visualizer automates this entirely — it scans the page, finds every Grid and Flex container, and renders their layout structure as visual overlays. Grid containers show column and row lines with track sizes labeled. Flex containers show the main axis direction, cross axis alignment, and how space is distributed. Gaps are highlighted with colored bands showing their pixel values. Click any container to see a detailed property panel with every layout property listed.

实时预览
example.com/dashboard Grid/Flex:开启
检测到 CSS Grid 容器
display: grid
col 1
col 2
col 3
col 1-2 (span 2)
col 3
gap: 8px · grid-template-columns: 1fr 1fr 1fr
布局属性
displaygrid
columns1fr 1fr 1fr
rowsauto auto
gap8px
items6 个子元素
核心功能

CSS Grid 网格线可视化

清晰地显示CSS Grid布局的行和列网格线。

Flexbox 方向和对齐可视化

突出显示Flexbox容器的主轴、交叉轴、对齐方式和间隙。

轨道编号和命名

显示Grid轨道编号和命名线以便于调试。

间隙和间距可视化

清晰地标记网格间隙(gap)和Flexbox间距。

项目编号

标记每个网格项目和Flexbox项目的编号以追踪布局。

颜色编码和切换

使用彩色覆盖可视化,并能快速开启/关闭不同元素。

使用场景

Grid布局调试

快速识别并修复CSS Grid配置问题。

Flexbox对齐问题排查

解决Flexbox中的对齐和间距问题。

响应式布局验证

验证不同屏幕尺寸下的网格布局。

设计系统检查

验证设计系统中的布局一致性。

客户交接前的质量检查

在交付前确保所有布局都正确。

使用方法
1

打开任何网页

访问包含CSS Grid或Flexbox的网站。

2

点击Grid/Flex可视化工具图标

激活可视化覆盖工具。

3

检查Grid或Flex布局

查看清晰的可视化网格线和Flexbox方向。

4

检查间隙和对齐

分析间隙大小和项目对齐方式。

5

调整和优化

使用视觉反馈来改进布局。

准备好开始了吗?

免费安装 DevSuite Pro,为您的浏览器解锁 64+ 个开发者工具。

添加到 Chrome 添加到 Edge 添加到 Firefox