nested-container-frames
它能做什么
这个技能说明如何搭建带有可见外部边界和内部框架分区的页面结构。适合希望布局清晰、又不需要厚重卡片样式的设计师和前端开发者。
适用场景
- ✓当页面需要为首屏、功能、证明和行动号召划分清晰的区域时。
- ✓当你希望用可见的框线和角标来体现页面结构时。
- ✓当页面上的卡片显得太拘束,需要更轻盈的布局时。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/nested-container-frames/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我希望我的落地页在首屏和功能区使用可见的框线和嵌入式分区,但不要有太多方框。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会设置一个居中的外层容器来控制页面宽度,添加边界线和小角标,然后在其中放置带有各自背景和边框的内层容器。整体间距保持一致。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Nested Container Frames Skill
Use When
- A layout needs a container-in-container system with visible outer bounds, inset inner frames, and layered page structure.
Workflow
- Define an outer centered container that controls the global page width.
- Add visible vertical boundary lines and small corner markers to establish the frame.
- Place inner containers inset from the outer edges using consistent padding.
- Give each inner level its own background, border, radius, and spacing rhythm.
- Use the frame hierarchy to separate hero, feature, proof, and CTA modules without adding heavy cards.
Guardrails
- Do not nest cards inside cards until the layout feels boxed in.
- Do not let frame lines overpower content readability.
常见问题
这种布局主要的风险是什么?
该技能提醒避免卡片套卡片的嵌套,这会让布局显得拘束。
框线会影响可读性吗?
可能会,因此该技能要求框线不能盖过内容。
它需要特殊的框架吗?
该技能以通用的方式描述布局,适用于常见的前端环境。
详情
作者的原始描述
Create a container-in-container layout system using nested frames. Use an outer centered container with visible vertical boundary lines and corner markers. Inside, place inner containers inset from the edges, each with its own background and rounded frame. Technique: outer container defines global bounds, inner containers use padding to create inset spacing, layered frames (border + background) to separate levels, and consistent spacing between outer frame and inner blocks.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13452
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。