返回模板

HTML email signature

A table-based, inline-styled email signature built to survive Gmail, Outlook, and Apple Mail.

用这个模板

完整源码

1 行 · 1.2 KB
<style>*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;background:#f6f7fb;color:#172033}button,a{font:inherit}.wrap{width:min(960px,calc(100% - 32px));margin:auto}</style><style>main{min-height:100vh;display:grid;place-items:center;padding:24px}.wrap-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px}</style><main><div class="wrap-card"><table cellpadding="0" cellspacing="0" border="0" style="font-family:Arial,Helvetica,sans-serif;color:#1e293b;font-size:14px;line-height:1.5"><tr><td style="padding-right:16px;border-right:3px solid #4f46e5;vertical-align:top"><div style="width:52px;height:52px;border-radius:12px;background:#4f46e5;color:#fff;font-weight:700;font-size:18px;text-align:center;line-height:52px">MK</div></td><td style="padding-left:16px;vertical-align:top"><div style="font-size:16px;font-weight:700;color:#0f172a">Maya Kim</div><div style="color:#475569;margin-bottom:6px">Product Lead · ShowYourCode</div><div><a href="mailto:maya@example.test" style="color:#4f46e5;text-decoration:none">maya@example.test</a> · <a href="https://showyourcode.app" style="color:#4f46e5;text-decoration:none">showyourcode.app</a></div></td></tr></table></div></main>

适用场景

采用表格布局与内联样式编写的邮件签名,专门兼容 Gmail、Outlook 和 Apple Mail 等邮件客户端。

布局原理

两列表格分别放置头像徽章与姓名职位联系方式,不依赖 Flexbox 或外部 CSS 文件。

如何定制

如替换为真实头像或 Logo,请使用 HTTPS 绝对地址并显式声明宽高与 alt 文本。

发布前检查

复制渲染结果到常用邮箱客户端后,分别向电脑和手机邮箱发一封测试邮件确认深色模式兼容。

带着上下文继续制作

在编辑器中改编示例之前,可以先比较相关模式或阅读实用指南。