BACKGROUND & DECOR
网格背景Grid Background
1px 浅线画出的方格网,配中心径向淡出——设计工具感的背景。
中英对照
- 中文
- 网格背景
- 英文
- Grid Background
- 别名
- 蓝图网格、方格纸背景、Graph Paper
- 一句话
- 1px 浅线画出的方格网,配中心径向淡出——设计工具感的背景。
效果预览
中央淡出 · 边缘可见网格
适合用在哪
开发者工具、设计产品、技术博客、AI 产品。
不适合:内容密集的长文阅读页:网格会抢视线;已经有点阵或强插画时再叠网格也会吵。
和相近模式的区别
点阵背景Dot Grid Pattern
点阵更轻、更「Notion」;线网格更「蓝图 / 设计工具」。需要秩序感偏线,需要柔和偏点。
网格淡出光晕Grid Fade + Top Glow
普通网格可铺满;网格淡出光晕特指顶部可见、向下 mask 渐隐,并常叠品牌光晕,是 Hero 配方。
容易踩的坑
- 网格线对比度过高(深于 #D0D2DC)会与正文抢视线,读者盯着格子而不是内容。
- background-size 不是整数像素时,高分屏上线条会粗细不一甚至闪烁。
- 忘了做中心淡出蒙版,满屏网格让标题区和边缘一样嘈杂、没有焦点。
设计提示词 · Prompt
网格背景(Grid Background):两层 linear-gradient 画十字线——linear-gradient(#E6E7EE 1px, transparent 1px) 横竖各一层、background-size:24-32px 正方形。中心内容区用 radial-gradient 透明→背景色做淡出蒙版,网格只在边缘可见,焦点自然落到中央内容上。变体:背景色极浅蓝(#FAFBFF)更有"蓝图"感;深色版用 rgba(255,255,255,.06) 做线。与技术感组件(代码块、终端窗口)是绝配。
Grid Background: Draw crosshair lines with two linear-gradient layers — linear-gradient(#E6E7EE 1px, transparent 1px), one horizontal and one vertical — with background-size: 24-32px squares. Over the central content area, use a radial-gradient fading from transparent to the background color as a fade-out mask, so the grid is only visible at the edges and focus naturally lands on the central content. Variants: a very light blue background (#FAFBFF) for a stronger "blueprint" feel; a dark version uses rgba(255,255,255,.06) for the lines. A perfect match for technical components (code blocks, terminal windows).
可复制 CSS
自包含的最小实现,粘贴到空白页面即可生效;类名可以按项目规范改名。
/* 十字线 + 中心径向淡出 */
.grid-bg {
position: relative;
min-height: 260px;
display: grid;
place-items: center;
background-color: #fafbff;
background-image:
linear-gradient(#e6e7ee 1px, transparent 1px),
linear-gradient(90deg, #e6e7ee 1px, transparent 1px);
background-size: 28px 28px;
font: 650 16px/1.3 system-ui, sans-serif;
color: #111827;
}
.grid-bg::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle at 50% 45%, #fafbff 0%, transparent 62%);
pointer-events: none;
}
.grid-bg > * { position: relative; }
演示 HTML 结构
<div class="s s--abs d-gridbg"> <b>中央淡出 · 边缘可见网格</b> </div>
常见问题
网格背景的英文是什么?
网格背景的英文是 Grid Background。常见英文别名还包括 Graph Paper。
Grid Background 的中文是什么?
Grid Background 的中文是「网格背景」。常见中文别名还包括 蓝图网格、方格纸背景。1px 浅线画出的方格网,配中心径向淡出——设计工具感的背景。
格子多大合适?
background-size 24–32px 正方形,示例 28px。太密像纱窗,太疏不像网格。
深色版怎么改?
底用近黑,线用 rgba(255,255,255,.06);淡出蒙版改成深色径向,避免中央发灰。
常见搭配
同一页面里经常和「网格背景」一起出现的模式,可以收藏后用「组合收藏为整页提示词」一起交给 AI。
所属设计风格
「网格背景」是这些整体设计风格的常见组成部分,在设计风格词典里可以看到整页效果。