跳到正文
Skillpedia
网站与界面(前端)75k · #2786

content-without-css

它能做什么

这项技能检查页面在样式被移除或被用户自己的样式替换后,是否仍然有意义。适合希望内容对所有人都有效的设计师和开发者。

适用场景

  • ✓当版式依赖视觉位置来表示接下来的内容时。
  • ✓当标签或错误提示只通过装饰性样式才出现时。
  • ✓当表单或一组步骤只是因为 CSS 才显得清晰时。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/content-without-css/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请关闭我注册页面的样式,检查标签、步骤和错误提示是否仍然清楚。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查页面的语义结构、阅读顺序和标签,并把关键说明放进真实的文字中,而不是依赖样式技巧。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Ensure content remains usable without CSS

Users can browse with custom styles, high contrast modes, reader tools, or failed stylesheets. If the page only makes sense visually, content order, instructions, and task flow break as soon as presentation changes.

Quick Reference

  • Use semantic HTML so headings, lists, and form relationships survive without CSS
  • Keep DOM order aligned with the reading and task-completion order
  • Do not put essential labels, instructions, or required markers in CSS generated content
  • Test key journeys with author styles disabled or overridden by user styles

Check

Find pages or components that rely on CSS for meaning. Verify the page still has a logical reading order, visible labels, instructions, error text, and operable primary actions when author styles are disabled or replaced by user styles.

Fix

Use semantic HTML and DOM order to preserve headings, lists, labels, field groups, helper text, and error messaging without relying on CSS positioning, pseudo-elements, or visual-only cues.

Explain

Explain why semantic HTML and meaningful DOM order let content remain understandable when CSS fails to load or users apply their own styles.

Code Review

Review templates, rendered HTML, and component markup related to Ensure content remains usable without CSS. Flag where meaning, reading order, labels, instructions, or task flow depend on CSS rather than semantics, and note how to verify the fix with styles disabled.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/content-without-css

常见问题

页面为什么会失去 CSS?

这项技能说明,有些用户会应用自定义样式或高对比度模式,样式表也可能加载失败。

哪些内容不应依赖 CSS?

关键标签、说明文字、必填标记和错误提示文字。

HTML 的顺序重要吗?

重要。这项技能说明,HTML 中的顺序应与阅读和操作顺序一致。

详情

作者的原始描述

Use when reviewing rendered HTML, layout components, or design-system patterns that may depend on presentation for meaning. Check the DOM order, semantic structure, form relationships, and whether CSS generated content carries essential information.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2786
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能