简体   繁体   English

JavaScript分页

[英]Pagination in JavaScript

I'm wondering if there is a helper (or a quick and dirty way) to show on the website how the page will print. 我想知道是否有助手(或快速而肮脏的方式)在网站上显示页面的打印方式。 Basically - only show print-only stylesheets AND pagination (ie where each page would start/stop). 基本上-仅显示仅打印样式表分页(即每个页面的开始/停止位置)。

Preferably, this would be done with raw JS; 最好使用原始JS来完成; not a library. 不是图书馆。

Thanks! 谢谢!

I don't think this is possible with standard browser javascript. 我认为使用标准的浏览器JavaScript不可能做到这一点。 You'd need some kind of browser extension that exposed an interface to a printer driver. 您需要某种浏览器扩展程序,该扩展程序将接口公开给打印机驱动程序。 My quick search I didn't find any, but that doesn't mean there isn't one out there. 我的快速搜索没有找到任何东西,但这并不意味着那里没有人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM