A4纸网页打印 html网页页面的宽度设置成多少
时间:2022-03-04 18:57:38
A4纸竖向打印,html网页页面的宽度设置成多少?这个问题是我们大家所疑惑的,于是网上搜集整理下,希望可以帮助你们
最近开发项目时遇到了网页打印的问题,这是问题之二,打印宽度设置
在公制长度单位与屏幕分辨率进行换算时,必须用到一个DPI(Dot Per Inch)指标。
经过我仔细的测试,发现了网页打印中,默认采用的是96dpi,并非传闻的72dpi
A4纸张的尺寸是210×297mm,按1英寸=25.41mm换算,即8.264×11.688英寸
所以,A4纸96dpi下的分辨率是794×1123,这就是我们在制作网页的时候需要的象素。
但是打印机是无法满幅打印的,总要有页边距,所以我们在制作网页的时候必须减去页边距。
以下是我测试的各种页边距下,A4纸对应的象素尺寸:
打印页边距设定为 0mm 时,网页内最大元素的分辨率:794×1123
打印页边距设定为 5mm 时,网页内最大元素的分辨率:756×1086
打印页边距设定为 19.05mm 时,网页内最大元素的分辨率:649×978
附:
A4纸的尺寸:210×297mm
A3纸的尺寸:297×420mm
标签:a4纸,高度,宽度
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
批量的把Word2013文档中的英文突显出来
2023-09-06 11:46:51
![](https://img.aspxhome.com/file/2023/7/24497_0s.jpg)
如何在Word2013中快速插入表格的方法
2022-07-05 10:30:32
![](https://img.aspxhome.com/file/2023/2/29272_0s.jpg)
Word2007巧设首字下沉突出段落
2023-12-05 10:33:48
![](https://img.aspxhome.com/file/2023/6/19676_0s.jpg)
word各版本的模板路径怎么找?
2023-09-17 22:31:33
![](https://img.aspxhome.com/file/2023/3/24023_0s.jpg)
wps的邮件合并在哪?
2023-12-06 18:58:22
![](https://img.aspxhome.com/file/2023/0/a163490_0s.jpg)
设置Win10自动清理回收站和临时文件时间的办法
2023-11-13 12:42:40
![](https://img.aspxhome.com/file/2023/5/49215_0s.png)
Win10系统电脑无线网络列表找不到了怎么办?
2023-11-24 00:07:41
![](https://img.aspxhome.com/file/2023/7/50817_0s.png)
word删除一页纸的方法步骤详解
2022-06-24 02:30:48
win10版本1903怎么关闭自带杀毒
2023-11-08 09:28:57
![](https://img.aspxhome.com/file/2023/7/48207_0s.jpg)
全面解析Word2007阅读版式视图等5种视图
2023-12-14 02:16:02
![](https://img.aspxhome.com/file/2023/7/21657_0s.jpg)
word2007怎么画简笔画小鱼?
2022-09-16 07:45:01
![](https://img.aspxhome.com/file/2023/8/25318_0s.jpg)
如何解决word的“无法注册这篇文档”
2022-02-19 19:25:16
word多级编号的设置
2023-06-08 02:50:49
怎么查看系统安装日期?Win10系统查看安装日期的方法
2023-11-13 10:49:15
![](https://img.aspxhome.com/file/2023/7/49007_0s.jpg)
iOS 14.7 正式版更新了什么内容?
2023-08-31 09:59:31
![](https://img.aspxhome.com/file/2023/1/45781_0s.png)
Word2007中网格线的使用攻略
2022-11-27 02:32:46
![](https://img.aspxhome.com/file/2023/8/25288_0s.jpg)
word2017怎么加水印?word2017添加水印教程
2023-12-03 06:25:54
![](https://img.aspxhome.com/file/2023/8/22778_0s.jpg)
word2010如何删除空白页?Word删除空白页方法图解
2023-08-20 14:57:26
![](https://img.aspxhome.com/file/2023/1/26631_0s.jpg)
Win10无法打印jpg图片怎么办?
2023-12-05 10:08:24
![](https://img.aspxhome.com/file/2023/6/50856_0s.jpg)
Word怎么做试卷的填充题+选择题
2022-03-24 07:16:26
![](https://img.aspxhome.com/file/2023/6/23926_0s.gif)