在不同的浏览器中打印的页面大小不同 [英] Printed page size not the same in different browsers

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

问题描述

我正在尝试创建一个可以在不同浏览器中以相同尺寸打印的文档,但是我没有运气.

I am trying to create a document that prints at the same size in different browsers, but I am not having any luck.

Google Chrome 66

Google Chrome 66

Firefox 60

Firefox 60

Internet Explorer 11

Internet Explorer 11

(Microsoft Edge不会打印背景色,因此我故意忽略了它.)

(Microsoft Edge does not print background colors, so I am purposefully ignoring it.)

为什么它们都不同,我可以解决这个问题吗?(最好使用CSS.)

Why are they all different, and can I fix this? (Using CSS preferably.)

我猜我将需要以某种方式使用 @media print ,但是我对此并不十分熟悉.

I'm guessing I will need to use @media print somehow, but I'm not real familiar with it.

谢谢.

推荐答案

请通过以下查询查询答复.

Please go through this query-solving reply.

https://stackoverflow.com/a/25248089/9628414

这篇关于在不同的浏览器中打印的页面大小不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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