从A4的html页面打印 [英] print from html pages in A4

查看:565
本文介绍了从A4的html页面打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计这个网站,供技术工程师从中打印,页面大小各不相同。当页面被打印时,表格被分成两半,这使得他们难以阅读。是否有任何代码可以使打印件适合每页A4纸。



另一种解决方案是,我将A4的每个页面的PDF文件打印出来,打印此页'按钮在每一页上,但这似乎有点不专业,任何想法? 解决方案

尝试使用CSS媒体属性以指定不同的CSS进行打印。



您还需要记住,每个浏览器都会以自己的方式实现打印(就像CSS渲染一样)。


I am designing this site which is for technical engineers to take prints from and the page sizes are varied. When pages are printed tables get cut up into 2 halves which makes it difficult for them to read. Is there any code which can make the prints fit into one A4 sheet per page.

The other solution is that i make PDF's of each page in A4 size and put a 'print this page' button on every page, but that seems a little unprofessional, any ideas?

解决方案

Try using the CSS media attribute to specify different CSS for printing.

You also need to bear in mind that each browser will implement printing in its own way (just like CSS rendering).

这篇关于从A4的html页面打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆