在线样例
左侧浏览样例目录,右侧查看版式预览与示例代码;点击运行即可通过 web-print-pdf 驱动本地客户端完成静默打印或 PDF 预览。使用前请先 安装并启动客户端。
客户端
若打印或预览效果与预期不符,请务必先从官网下载并安装最新版 Web打印专家客户端后再试(旧版本可能导致版式偏差)。
版式说明
版式预览与打印输出完全遵循 HTML/CSS 标准样式,没有隐藏的渲染技巧:样式写成什么样,页面就长成什么样。
71 - 客户满意度调查问卷
客户满意度调查问卷打印样例。
版式预览
示例代码
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:176px;height:1123px;box-sizing:border-box;overflow:hidden;background:#1E293B"></div>
<div style="position:absolute;left:212px;top:56px;width:534px;height:28px;box-sizing:border-box;overflow:hidden;font-size:20px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">客户满意度调查问卷</div>
<div style="position:absolute;left:212px;top:90px;width:534px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#94A3B8;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">CUSTOMER SATISFACTION SURVEY</div>
<div style="position:absolute;left:24px;top:112px;width:128px;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:212px;top:112px;width:534px;height:2px;box-sizing:border-box;overflow:hidden;background:#1E293B"></div>
<div style="position:absolute;left:254px;top:126px;width:110px;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:452px;top:126px;width:120px;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">138 0013 8000</div>
<div style="position:absolute;left:212px;top:128px;width:36px;height:16px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">姓 名</div>
<div style="position:absolute;left:392px;top:128px;width:56px;height:16px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">联系电话</div>
<div style="position:absolute;left:254px;top:146px;width:110px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:452px;top:146px;width:120px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:24px;top:150px;width:128px;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:272px;top:162px;width:140px;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">2026-10-27</div>
<div style="position:absolute;left:212px;top:164px;width:56px;height:16px;box-sizing:border-box;overflow:hidden;font-size:9px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">填写日期</div>
<div style="position:absolute;left:272px;top:182px;width:140px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:24px;top:192px;width:40px;height:4px;box-sizing:border-box;overflow:hidden;background:#38BDF8"></div>
<div style="position:absolute;left:24px;top:206px;width:128px;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">CUSTOMER SURVEY</div>
<div style="position:absolute;left:212px;top:208px;width:534px;height:40px;box-sizing:border-box;overflow:hidden;background:#F1F5F9"></div>
<div style="position:absolute;left:224px;top:216px;width:510px;height:24px;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:212px;top:272px;width:250px;height:30px;box-sizing:border-box;overflow:hidden;font-size:9.5px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">1. 您对我们的产品质量满意吗?</div>
<div style="position:absolute;left:496px;top:272px;width:250px;height:30px;box-sizing:border-box;overflow:hidden;font-size:9.5px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">4. 您对售后问题的处理结果满意吗?</div>
<div style="position:absolute;left:24px;top:288px;width:128px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#94A3B8;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">本问卷用于了解您</div>
<div style="position:absolute;left:24px;top:306px;width:128px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#94A3B8;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">对产品与服务的</div>
<div style="position:absolute;left:212px;top:306px;width:250px;height:13px;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:496px;top:306px;width:250px;height:13px;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:212px;top:319px;width:250px;height:13px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#475569;display:flex;align-items:center;justify-content:flex-st
// …
运行结果
- 若无法打印或连接客户端失败,请参阅 本地Print succeeded,上线后无法打印?(HTTP 业务系统上线后常见)。
- 客户端内置「运行示例」页(
vueApp/.../examples/index.vue)提供更多可编辑 demo,与本页样例互补。 - 工具类样例(连接检测、打印机列表等)仅返回 JSON,不触发打印。