- word制作目录教程:如何为word设计个性化页眉
- word表格教程:word和ppt如何合并或组合图片?word和ppt组合图片方法介绍
- word文档基本操作教程:Word怎么给文字加边框呢?
- wordpress教程菜鸟教程:Word文档中摄氏度符号怎么打
最近开发项目时遇到了网页打印的问题,wordpress菜鸟教程,这是问题之二,打印宽度设置
在公制长度单位与屏幕分辨率进行换算时,必须用到一个DPI(Dot Per Inch)指标。
经过我仔细的测试,发现了网页打印中,默认采用的是96dpi,并非传闻的72dpi
A4纸张的尺寸是210×297mm,按1英寸=25.41mm换算,即8.264×11.688英寸
所以,word多出来一页空白页删不掉,A4纸96dpi下的分辨率是794×1123,这就是我们在制作网页的时候需要的象素。
但是打印机是无法满幅打印的,总要有页边距,word多出来一页空白页删不掉,所以我们在制作网页的时候必须减去页边距。
以下是我测试的各种页边距下,A4纸对应的象素尺寸:
打印页边距设定为 0mm 时,网页内最大元素的分辨率:794×1123
<div style="width:794px;height:1123px;border:1px solid #000000;"> </div>
打印页边距设定为 5mm 时,网页内最大元素的分辨率:756×1086
<div style="width:756px;height:1086px;border:1px solid #000000;"> </div>
打印页边距设定为 19.05mm 时,网页内最大元素的分辨率:649×978
<div style="width:649px;height:978px;border:1px solid #000000;"> </div>
附:
A4纸的尺寸:210×297mm
A3纸的尺寸:297×420mm
上一篇:pdf转换成word,pdf转word:在Word 2007中如何删除自定义库 下一篇:pdf怎么转换成word:A4纸网页打印 html网页页面的宽度设置成多少
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。