text-in-images
它能做什么
这项技能检查网页中以图片形式显示文字、而非真实文字的内容。适用于希望内容人人可读、可翻译的网站团队。
适用场景
- ✓当横幅或图片中的一句话可以改为真实 HTML 文字的时候。
- ✓当页面中的文字图片没有替代文字的时候。
- ✓当无障碍审查指出文字无法调整大小的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-in-images/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我网站的页头是一张带文字的图片。请帮我检查这些文字是否应该改为真实文字。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会查找带有文字的图片。它会建议用 CSS 设置样式的真实文字,如果图片必须保留,则为其添加替代文字。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Avoid images of text
Text in images can't be resized by users with low vision, translated automatically, read by screen readers without alt text, or reflowed when zoomed—real text is always more accessible.
Quick Reference
- Use real HTML text instead of text in images
- Images of text can't be resized, translated, or read by screen readers
- Logos and decorative typography are acceptable exceptions
- Use CSS and web fonts for stylized text effects
Check
Identify images that contain text content. Verify the text could not be presented as real HTML text. Exceptions include logos, decorative typography, and cases where exact visual rendering is essential.
Fix
Replace text images with real HTML text styled with CSS. If images of text are necessary, provide equivalent text in alt attributes. Consider using SVG with embedded text for scalable typography.
Explain
Explain how images of text cannot be resized by users, are not readable by screen readers without alt text, cannot reflow on zoom, and create barriers for translation and text customization.
Code Review
Review the rendered markup and interactive states that affect Avoid images of text. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/text-in-images
常见问题
标志可以例外吗?
可以。这项技能指出,标志和装饰性字体属于可接受的例外。
如果必须保留图片怎么办?
这项技能建议在图片的 alt 属性中提供等效的文字。
SVG 能用于文字样式吗?
这项技能建议使用带有嵌入文字的 SVG,作为可缩放排版的一种选择。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Avoid images of text. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #3053
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。