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

text-resizing

它能做什么

这项技能检查页面文字放大后是否会被截断或重叠。适用于希望低视力人群也能阅读的开发者和设计师。

适用场景

  • ✓当页面中固定高度的框在文字放大时把文字裁切掉的时候。
  • ✓当字号使用固定像素,忽略了用户设置的时候。
  • ✓当你在上线前以 200% 缩放检测网站的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-resizing/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我把浏览器放大时,部分文字会被截断。请帮我检查 CSS 中的固定尺寸。”

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

工作原理

智能体会查找固定像素尺寸和固定高度的容器,然后改用灵活的单位,并让容器随文字增长。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Support text resizing to 200%

Users with low vision need larger text—if your layout breaks at 200% zoom or clips text in fixed containers, they can't read your content.

Quick Reference

  • Use rem/em units for font sizes instead of fixed px
  • Avoid fixed-height containers that clip text
  • Ensure containers grow when text size increases
  • Test at 200% zoom—all content should remain visible

Check

Resize text to 200% using browser text-only zoom settings and verify no content is clipped, truncated, or overlaps. Confirm all functionality remains accessible and text containers expand appropriately.

Fix

Use relative units (rem, em) for font sizes instead of fixed pixels. Ensure containers can grow with text content. Avoid fixed-height containers that clip overflowing text. Test with browser text-size preferences.

Explain

Explain how users with low vision adjust text size through browser settings, and why fixed pixel sizes or clipping containers prevent users from accessing content at their preferred reading size.

Code Review

Review the rendered markup and interactive states that affect Support text resizing to 200%. 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-resizing

常见问题

200% 检查测试的是什么?

它检查当浏览器设置中的文字放大一倍时,所有内容是否仍然可见、可以使用。

为什么固定像素是个问题?

它们忽略了用户选择的尺寸,使文字无法按用户的需要放大。

这项技能推荐使用哪些单位?

推荐字号使用 rem 和 em 单位。

详情

作者的原始描述

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Support text resizing to 200%. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能