在FireFox和IE 8中打印横向或纵向 [英] Printing landscape or portrait in FireFox and IE 8

查看:547
本文介绍了在FireFox和IE 8中打印横向或纵向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我使用FireFox最新版本和IE8

Currently I am using FireFox latest version and IE8

要更改打印方向,我使用了

To change the orientation of printing , I used

@page {
  size: portrait;
}


@page参考

虽然它声称@page在两个浏览器都支持,但在我的测试后它除了Chrome以外不工作。我想知道如何在FireFox / IE8中以不同的方向打印页面。

Although it claim that the @page is supported in both browser , after my testing it does not working at all besides Chrome. I would like to know how to print the page in different orientation in FireFox / IE8.

推荐答案

没有应用程序应该依赖于此功能

No application should depend on this feature to work cross browser right now because the CSS3 standard on page orientation for printing is still under implementation in most browsers.

对于Google Chrome来说,它可以很好地工作:http://dev.activisual.net/test.html

For Google Chrome it works just fine: http://dev.activisual.net/test.html

最终在打印过程中改变用户的方向继电器的决定(即使它工作),因此您可以简单地让用户知道他们应该以横向或纵向打印页面,但是一般来说,以防止用户在桌面浏览器上打印时更改方向。

Ultimately the decision of changing the orientation relays on the user during the printing process (even if it works), so you could simply let the users know that they should print the page in landscape or portrait, but in general there won´t ever by a way to prevent the users from changing the orientation while printing on desktop browsers.

这是最近一次报告的错误报告:
https://bugzilla.mozilla.org/show_bug.cgi?id=851441

Here is a bug report for FF reported very recently: https://bugzilla.mozilla.org/show_bug.cgi?id=851441

您可以阅读此问题已接受的答案以供参考:
从HTML进行横向打印

You can read the accepted answer on this question for reference: Landscape printing from HTML

这篇关于在FireFox和IE 8中打印横向或纵向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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