IE打印字体较小 [英] IE Print font size smaller

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

问题描述

我使用javascript打印功能从IE打印我的页面。文本比应该的文本小。

I am printing my page from IE using javascript print function. The text is way smaller than what it should be.

                    function BtnPrintClick() {

                    var printHTML = $('#divPrint').html();

                    window.innerHTML = "";
                    window.innerHTML = printHTML;
                    window.print();

这是我的脚本。为什么它没有拿起网页的字体大小?在任何@media打印样式中都没有调整字体大小。我正在使用IE9。

This is my script. Why does it not pick up the font size of the web page? The font is not being resized in any @media print styling. I am using IE9.

推荐答案


当您打印网页时,Internet Explorer会缩小其内容。
网页,以适应您的纸张宽度。如果网页很宽,
减小文字大小以适应页面可能导致文本为
不可读小

When you print a webpage, Internet Explorer shrinks the content of the webpage to fit the width of your paper. If the webpage is wide, reducing the text size to fit the page can cause the text to be unreadably small

http: //windows.microsoft.com/en-us/windows7/printing-webpages-in-internet-explorer-9-frequently-asked-questions

微软提出的用户解决方案是:

The user solutions proposed by microsoft are:


  • 将打印方向更改为横向。

  • 选择部分网页并单独打印。请参阅问题如何打印网页的特定部分?有关详细信息,请参阅本主题后面的内容。

  • 单击工具按钮工具按钮,指向打印,然后单击打印预览。从更改打印尺寸菜单中选择自定义。通过在自定义大小文本框中设置百分比,指定要打印网页的大小。这将扩大整个网页的打印尺寸,但可能会导致打印文档中的某些网页被切断。

作为开发人员,您可以查看@media以查看它是否覆盖了IE9的打印规则。

As a developper, you may look at @media to see if it overwrite the print rules of IE9.

这篇关于IE打印字体较小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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