IE在打印时删除网页的颜色 [英] IE remove colors for web page when printing

查看:122
本文介绍了IE在打印时删除网页的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,
我有一个网站,其背景色在打印时很重要,但IE会从页面中删除所有的颜色。
我知道有一些设置可以在IE上禁用此功能,但我不能依靠用户进入IE设置从IE中禁用此选项。

I have a website with background colours which are important at the time of printing, but IE removes all colours from page. I know there is some settings to disable this on IE, but I can not rely on users to get into IE settings to disable this option from IE.

有没有什么办法可以禁用我的网页,或以某种方式arround?

Is there any way to disable this from my web page, or some way arround?

预先感谢。

推荐答案

您无法从代码中修改浏览器设置(想想安全隐含)。您的用户将不得不明确地允许背景颜色/图像,否则您将不得不为他们提供要打印的图像。另一种选择是提供使用完全不同样式的打印纸,并取消对背景颜色/图像的依赖。

You cannot modify the browsers settings from within your code (think of the security-implications). Your users will have to explicitly allow background colors/images, or you would have to provide them an image to print instead. Another option is to provide a print-sheet that uses completely different styles and does away with your reliance upon a background color/image.

这篇关于IE在打印时删除网页的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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