Màu sắc & Thiết kế
Trình tạo bố cục CSS Grid
Drag track sizers, copy the CSS Grid.
.grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 80px 80px;
gap: 12px;
}Ghi chú của biên tập viên
Understanding · The first real layout system the web has had.
Chương phân tích chuyên sâu này hiện chỉ có sẵn bằng tiếng Anh. Công cụ chuyển đổi ở trên hoạt động bằng ngôn ngữ của bạn; bài viết giải thích dài chưa được dịch.
Các câu hỏi thường gặp
Quick answers.
›What browser support can I expect?
CSS Grid is supported by all modern browsers (Chrome, Firefox, Safari, and Edge). This generator produces standard syntax that is compatible without the need for complex polyfills.
›What are fractional units (fr)?
The `fr` unit represents a fraction of the available space in the grid container. Using `1fr` for multiple columns ensures they share the remaining space equally after fixed-width tracks are accounted for.
›Is my layout data saved to a server?
No. The generator runs completely in your browser and your layout configuration never leaves your machine. You can copy the code directly to your clipboard for use in your project.
›What is the difference between tracks and gaps?
Tracks are the actual columns and rows that hold content, while gaps (gutters) define the empty space between those tracks. You can adjust the `grid-gap` to control spacing without affecting track sizing.
Mọi người cũng tìm kiếm
Công cụ liên quan
More in this room.
- Bộ chuyển đổi đơn vị CSSChuyển đổi px, rem, em, pt và nhiều hơn nữa.
- Máy tính tỷ lệ khung hìnhTính toán tỷ lệ và thay đổi kích thước.
- Gợi ý kết hợp font chữCác cặp font chữ được tuyển chọn cho bất kỳ font Google hoặc hệ thống nào.
- Công cụ chuyển đổi màu (HEX/RGB/HSL/OKLCH)Chuyển HEX, RGB, HSL, OKLCH tức thì.
- Công cụ kiểm tra độ tương phản (WCAG)Kiểm tra độ tương phản WCAG AA/AAA – đạt hoặc không đạt.
- Trình tạo GradientGradient CSS tuyến tính, xuyên tâm và hình nón.