Live demos
Browse the sample list on the left and preview layouts plus sample code on the right. Run a demo to print silently or preview PDF via web-print-pdf and the local client. Install and launch the client first.
Client
If results look wrong, install the latest Web Print Expert client from our site first (older builds may cause layout drift).
Layout
Preview and print follow standard HTML/CSS only—no hidden tricks. What you style is what you get.
11 - SF standard waybill
SF Express standard waybill layout (100×150mm): brand bar, tracking barcode, destination code, addresses, COD and receipt fields.
Layout preview
Sample code
const html = `<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>顺丰标准快递面单</title>
<style>
html, body { margin: 0; padding: 0; }
.biz-sheet {
position: relative;
width: 378px;
height: 567px;
box-sizing: border-box;
background: #fff;
font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
color: #0F172A;
overflow: hidden;
}
</style>
</head>
<body>
<div class="biz-sheet">
<div style="position:absolute;left:240px;top:6px;width:126px;height:18px;box-sizing:border-box;overflow:hidden;font-size:13px;font-weight:700;color:#0F172A;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">95338</div>
<div style="position:absolute;left:12px;top:8px;width:26px;height:26px;box-sizing:border-box;overflow:hidden;background:#111827;border:1px solid #111827;box-sizing:border-box"></div>
<div style="position:absolute;left:12px;top:8px;width:26px;height:26px;box-sizing:border-box;overflow:hidden;font-size:11px;font-weight:700;color:#FFFFFF;text-align:center;display:flex;align-items:center;justify-content:center;white-space:pre-wrap">SF</div>
<div style="position:absolute;left:44px;top:9px;width:90px;height:14px;box-sizing:border-box;overflow:hidden;font-size:11px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">顺丰速运</div>
<div style="position:absolute;left:44px;top:23px;width:90px;height:12px;box-sizing:border-box;overflow:hidden;font-size:7px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">EXPRESS</div>
<div style="position:absolute;left:240px;top:24px;width:126px;height:11px;box-sizing:border-box;overflow:hidden;font-size:7px;color:#64748B;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">www.sf-express.com</div>
<div style="position:absolute;left:12px;top:40px;width:354px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:238px;top:42px;width:80px;height:14px;box-sizing:border-box;overflow:hidden;font-size:10px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">顺丰标快</div>
<div style="position:absolute;left:12px;top:44px;width:206px;height:48px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center"><svg width="206" height="44" viewBox="0 0 206 44" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><rect x="0" y="0" width="3" height="44" fill="#111"/><rect x="5" y="0" width="3" height="44" fill="#111"/><rect x="11" y="0" width="2" height="44" fill="#111"/><rect x="16" y="0" width="3" height="44" fill="#111"/><rect x="21" y="0" width="2" height="44" fill="#111"/><rect x="25" y="0" width="3" height="44" fill="#111"/><rect x="30" y="0" width="1" height="44" fill="#111"/><rect x="33" y="0" width="3" height="44" fill="#111"/><rect x="38" y="0" width="3" height="44" fill="#111"/><rect x="44" y="0" width="2" height="44" fill="#111"/><rect x="49" y="0" width="3" height="44" fill="#111"/><rect x="54" y="0" width="2" height="44" fill="#111"/><rect x="58" y="0" width="3" height="44" fill="#111"/><rect x="63" y="0" width="1" height="44" fill="#111"/><rect x="66" y="0" width="3" height="44" fill="#111"/><rect x="71" y="0" width="3" height="44" fill="#111"/><rect x="77" y="0" width="2" height="44" fill="#111"/><rect x="82" y="0" width="3" height="44" fill="#111"/><rect x="87" y="0" width="2" height="44" fill="#111"/><rect x="91" y="0" width="3" height="44" fill="#111"/><rect x="96" y="0" width="1" height="44" fill="#111"/><rect x="99" y="0" width="3" height="44" fill="#111"/><rect x="104" y="0" width="3" height="44" fill="#111"/><rect x="110" y="0" width="2" height="44" fill="#111"/><rect x="115" y="0" width="3" height="44" fill="#111"/><rect x="120" y="0" width="2" height="44" fill="#111"/><rect x="124" y="0" width="3" height="44" fill="#111"/><rect x="129" y="0" width="1" height="44" fill="#111"/><rect x="132" y="0" width="3" height="44" fill="#111"/><rect x="137" y="0" width="3" height="44" fill="#111"/><rect x="143" y="0" width="2" height="44" fill="#111"/><rect x="148" y="0" width="3" height="44" fill="#111"/><rect x="153" y="0" width="2" height="44" fill="#111"/><rect x="157" y="0" width="3" height="44" fill="#111"/><rect x="162" y="0" width="1" height="44" fill="#111"/><rect x="165" y="0" width="3" height="44" fill="#111"/><rect x="170" y="0" width="3" height="44" fill="#111"/><rect x="176" y="0" width="2" height="44" fill="#111"/><rect x="181" y="0" width="3" height="44" fill="#111"/><rect x="186" y="0" width="2" height="44" fill="#111"/><rect x="190" y="0" width="3" height="44" fill="#111"/><rect x="195" y="0" width="1" height="44" fill="#111"/><rect x="198" y="0" width="3" height="44" fill="#111"/><rect x="203" y="0" width="3" height="44" fill="#111"/></svg></div>
<div style="position:absolute;left:228px;top:44px;width:1px;height:64px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:280px;top:58px;width:86px;height:26px;box-sizing:border-box;overflow:hidden;font-size:20px;font-weight:700;color:#0F172A;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">020</div>
<div style="position:absolute;left:238px;top:60px;width:40px;height:11px;box-sizing:border-box;overflow:hidden;font-size:7px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">目的地</div>
<div style="position:absolute;left:50px;top:92px;width:168px;height:14px;box-sizing:border-box;overflow:hidden;font-size:10px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">SF254227178797</div>
<div style="position:absolute;left:12px;top:94px;width:36px;height:12px;box-sizing:border-box;overflow:hid
// …
Result
- If printing fails or the client cannot connect, see Local print works—production does not? (common on HTTP deployments).
- The client’s built-in Run examples page has more editable demos; this page complements it.
- Utility demos (connection, printer list) return JSON only—no print job.