返回模板

Printable HTML invoice

A clean itemized invoice layout with subtotal, tax calculation, and print-ready styles.

用这个模板

完整源码

1 行 · 1.3 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>body{background:#f1f5f9;padding:28px 16px}.sheet{max-width:720px;margin:auto;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:36px}.row{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}table{width:100%;border-collapse:collapse;margin:28px 0}th,td{padding:11px 8px;border-bottom:1px solid #e2e8f0;text-align:left}th:last-child,td:last-child{text-align:right}.total{font-size:20px;font-weight:800}@media print{body{background:#fff;padding:0}.sheet{border:0;padding:0}}</style><main class="sheet"><div class="row"><div><h1 style="margin:0">Invoice #INV-2026-041</h1><p style="color:#64748b;margin:4px 0">Issued Nov 26, 2026 · Due Dec 10, 2026</p></div><div style="text-align:right"><strong>Studio North LLC</strong><br>billing@studionorth.test</div></div><table><thead><tr><th>Description</th><th>Qty</th><th>Amount</th></tr></thead><tbody><tr><td>Design system audit</td><td>1</td><td>$1,200.00</td></tr><tr><td>Interactive prototype pack</td><td>2</td><td>$800.00</td></tr></tbody></table><div class="row"><span>Thank you for your business.</span><span class="total">Total: $2,000.00</span></div></main>

适用场景

适合自由职业者、独立顾问和小型工作室快速生成可打印 PDF 或直接发送的对账发票页面。

布局原理

顶部展示发票编号与开票方信息,中间为明细表格,底部突出合计金额,并在 @media print 中自动去掉阴影和灰底。

如何定制

替换为你的收款主体、税率、币种和付款期限说明,确保条目金额计算准确。

发布前检查

导出 PDF 前务必通过浏览器打印预览检查分页和页边距。

带着上下文继续制作

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