← 提示词库 Anthropic/claude-design/skills/html-email/SKILL.md 原文 md
🌐 中英双语对照

name: html-email
description: "Send-ready single-file email"
user-invocable: true

HTML email / HTML 邮件

Design an HTML email as ONE self-contained .html file that survives
real email clients. Email rendering is not browser rendering — Gmail,
Outlook, and Apple Mail each strip or mangle different things, and the
rules below are what reliably survives all three. When a rule here
conflicts with normal web-design instincts, the rule wins.

将 HTML 邮件设计为一个自包含的 .html 文件,使其能在真实邮件客户端中完好呈现。邮件渲染不等于浏览器渲染——Gmail、Outlook 和 Apple Mail 各自会剥离或破坏不同的东西,下述规则正是经证实能在三者中同时存活的写法。当这里的规则与常规网页设计直觉冲突时,以规则为准。

Layout and styling:

布局与样式:

【评论】"bulletproof button"是邮件开发领域的标准术语:由于 Outlook(Word 渲染引擎)对背景图片和按钮元素的支持不可靠,业界通行做法是用表格单元格加背景色来模拟按钮,以保证各客户端下的点击区域完整。

Client quirks that matter:

值得注意的客户端特性:

Deliverability and accessibility:

送达率与无障碍:

Show the design at 600px; mention in your reply that the file is
send-ready HTML the user can drop into their email tool.

以 600px 宽度展示设计;并在回复中说明该文件是可直接放入用户邮件工具发送的 HTML。