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.
69 - Home visit record
A4 home-visit record: student/family, visit notes, and follow-up.
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: 794px;
height: 1123px;
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:0px;top:0px;width:794px;height:88px;box-sizing:border-box;overflow:hidden;background:#075985"></div>
<div style="position:absolute;left:48px;top:18px;width:400px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#7DD3FC;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">市第二中学 · 家校共育</div>
<div style="position:absolute;left:560px;top:26px;width:186px;height:12px;box-sizing:border-box;overflow:hidden;font-size:7.5px;color:#7DD3FC;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">家访日期</div>
<div style="position:absolute;left:48px;top:34px;width:400px;height:32px;box-sizing:border-box;overflow:hidden;font-size:22px;font-weight:700;color:#FFFFFF;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">家访记录</div>
<div style="position:absolute;left:560px;top:42px;width:186px;height:22px;box-sizing:border-box;overflow:hidden;font-size:12px;font-weight:700;color:#FFFFFF;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">2026-10-26</div>
<div style="position:absolute;left:92px;top:110px;width:200px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;font-weight:600;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">周子豪</div>
<div style="position:absolute;left:444px;top:110px;width:240px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">高二(3)班</div>
<div style="position:absolute;left:48px;top:112px;width:40px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">学生</div>
<div style="position:absolute;left:400px;top:112px;width:40px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">班级</div>
<div style="position:absolute;left:92px;top:130px;width:200px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:444px;top:130px;width:240px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:112px;top:148px;width:180px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">王海涛</div>
<div style="position:absolute;left:464px;top:148px;width:220px;height:18px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">学生家中</div>
<div style="position:absolute;left:48px;top:150px;width:60px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">家访教师</div>
<div style="position:absolute;left:400px;top:150px;width:60px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">家访地点</div>
<div style="position:absolute;left:112px;top:168px;width:180px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:464px;top:168px;width:220px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:48px;top:210px;width:698px;height:44px;box-sizing:border-box;overflow:hidden;background:#F0F9FF"></div>
<div style="position:absolute;left:64px;top:224px;width:72px;height:16px;box-sizing:border-box;overflow:hidden;font-size:8.5px;font-weight:700;color:#0369A1;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">家访目的</div>
<div style="position:absolute;left:144px;top:224px;width:586px;height:16px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#475569;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">□ 学习情况 □ 行为习惯 □ 心理状态 □ 家庭沟通</div>
<div style="position:absolute;left:48px;top:270px;width:698px;height:276px;box-sizing:border-box;overflow:hidden;overflow:hidden"><table style="width:100%;max-width:100%;border-collapse:collapse;table-layout:fixed;box-sizing:border-box"><thead><tr><th style="width:22.9226%;box-sizing:border-box;border:1px solid #E2E8F0;padding:0 6px;height:36px;background:#F0F9FF;color:#0369A1;font-size:9.5px;font-weight:600;text-align:left">参与人</th><th style="width:51.5759%;box-sizing:border-box;border:1px solid #E2E8F0;padding:0 6px;height:36px;background:#F0F9FF;color:#0369A1;font-size:9.5px;font-weight:600;text-align:left">沟通内容</th><th style="width:25.5014%;box-sizing:border-box;border:1px solid #E2E8F0;padding:0 6px;height:36px;background:#F0F9FF;color:#0369A1;font-size:9.5px;font-weight:600;text-align:left">达成共识</th></tr></thead><tbody><tr><td style="box-sizing:border-box;border:1px solid #E2E8F0;padding:0 6px;height:60px;font-size:9.5px;color:#0F172A;text-align:left;vertical-align:middle">父亲 周建明</td><td style="box-sizing:border-box;border:1px solid #E2E8F0;padding:0 6px;height:60px;font-size:9.5px;color:#0F172A;text-align:left;vertical-align:middle">反馈近期两次旷课情况,了解家庭作息安排</td><td style="box-sizing:border-box;border:1px solid #E2E8F0;padding:0 6px;height:60px;font-size:9.5px;color:#0F172A;text-align:left;ver
// …
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.