在线样例
左侧浏览样例目录,右侧查看版式预览与示例代码;点击运行即可通过 web-print-pdf 驱动本地客户端完成静默打印或 PDF 预览。使用前请先 安装并启动客户端。
客户端
若打印或预览效果与预期不符,请务必先从官网下载并安装最新版 Web打印专家客户端后再试(旧版本可能导致版式偏差)。
版式说明
版式预览与打印输出完全遵循 HTML/CSS 标准样式,没有隐藏的渲染技巧:样式写成什么样,页面就长成什么样。
76 - 产品试用反馈问卷
产品试用反馈问卷打印样例。
版式预览
示例代码
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:48px;top:56px;width:420px;height:32px;box-sizing:border-box;overflow:hidden;font-size:22px;font-weight:700;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">产品体验反馈问卷</div>
<div style="position:absolute;left:560px;top:58px;width:186px;height:20px;box-sizing:border-box;overflow:hidden;font-size:12px;font-weight:700;color:#0F172A;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">PD-2026 Pro</div>
<div style="position:absolute;left:480px;top:60px;width:74px;height:16px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#64748B;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">产品型号</div>
<div style="position:absolute;left:48px;top:94px;width:420px;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">PRODUCT EXPERIENCE FEEDBACK</div>
<div style="position:absolute;left:88px;top:123px;width:140px;height:20px;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:322px;top:123px;width:120px;height:20px;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:126px;width:36px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">姓名</div>
<div style="position:absolute;left:258px;top:126px;width:60px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#64748B;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">使用时长</div>
<div style="position:absolute;left:490px;top:126px;width:256px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8px;color:#94A3B8;text-align:right;display:flex;align-items:center;justify-content:flex-end;white-space:pre-wrap">请根据真实体验勾选</div>
<div style="position:absolute;left:88px;top:143px;width:140px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:322px;top:143px;width:120px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:48px;top:166px;width:698px;height:1px;box-sizing:border-box;overflow:hidden;background:#CBD5E1"></div>
<div style="position:absolute;left:48px;top:180px;width:330px;height:16px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">01 产品外观与做工给您的第一印象如何?</div>
<div style="position:absolute;left:416px;top:180px;width:330px;height:16px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">02 产品功能是否满足日常使用需求?</div>
<div style="position:absolute;left:48px;top:204px;width:330px;height:14px;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:416px;top:204px;width:330px;height:14px;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:256px;width:330px;height:16px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">03 操作是否简单易上手?</div>
<div style="position:absolute;left:416px;top:256px;width:330px;height:16px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">04 产品运行稳定性如何?</div>
<div style="position:absolute;left:48px;top:280px;width:330px;height:14px;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:416px;top:280px;width:330px;height:14px;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:332px;width:330px;height:16px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">05 您认为产品的价格是否合理?</div>
<div style="position:absolute;left:416px;top:332px;width:330px;height:16px;box-sizing:border-box;overflow:hidden;font-size:10px;color:#0F172A;display:flex;align-items:center;justify-content:flex-start;white-space:pre-wrap">06 您愿意向朋友推荐这款产品吗?</div>
<div style="position:absolute;left:48px;top:356px;width:330px;height:14px;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:416px;top:356px;width:330px;height:14px;box-sizing:border-box;overflow:hidden;font-size:8.5px;color:#475569;display:flex;ali
// …
运行结果
- 若无法打印或连接客户端失败,请参阅 本地Print succeeded,上线后无法打印?(HTTP 业务系统上线后常见)。
- 客户端内置「运行示例」页(
vueApp/.../examples/index.vue)提供更多可编辑 demo,与本页样例互补。 - 工具类样例(连接检测、打印机列表等)仅返回 JSON,不触发打印。