跳到正文
Skillpedia
界面(UI/UX)7.2k · #13452

nested-container-frames

它能做什么

这个技能说明如何搭建带有可见外部边界和内部框架分区的页面结构。适合希望布局清晰、又不需要厚重卡片样式的设计师和前端开发者。

适用场景

  • ✓当页面需要为首屏、功能、证明和行动号召划分清晰的区域时。
  • ✓当你希望用可见的框线和角标来体现页面结构时。
  • ✓当页面上的卡片显得太拘束,需要更轻盈的布局时。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/nested-container-frames/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/nested-container-frames/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Define an outer centered container that controls the global page width.
  2. Add visible vertical boundary lines and small corner markers to establish the frame.
  3. Place inner containers inset from the outer edges using consistent padding.
  4. Give each inner level its own background, border, radius, and spacing rhythm.
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能