获取IE8打印正确的iFrame [英] Get IE8 to print the correct iFrame

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

问题描述

我有越来越IE8中印一个iframe问题

I am having issues getting an iframe printed in IE8

该解决方案需要在IE8和放大器工作;怪癖模式。

The solution needs to work in IE8 & quirks mode.

下面是一个例子: http://jsfiddle.net/prq3k/18/

我已经试过各种变种,其中大部分打印要么有错误的iframe或外iframe中。

I've tried various variants and most of them print either the wrong iframe or an outer iframe.

我也尝试创建的DocumentFragment并使用.execCommand其中工程怪癖模式很好,​​但拒绝在IE8中的iframe中加载一些我的图像(打印)。

I've also tried creating a documentFragment and using .execCommand("print") which works fine in quirks mode but refuses to load some of my images within the iframe in IE8.

该解决方案可以使用浏览器检测,处理FF&安培; IE8。 IE8与功放之间,如果它检测到浏览器这将是非常难看,但可以接受;怪异模式。

The solution can use browser detection to deal with FF & IE8. It would be very ugly but acceptable if it browser detected between IE8 & Quirksmode.

推荐答案

打印iframe的是可怕的。我们说服管理层使用的打印样式表。现在一切都可爱。

Printing iframe's is horrible. We convinced management to use print stylesheets. Everything is lovely now.

使用 CSS媒体打印

这篇关于获取IE8打印正确的iFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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