默认情况下,JavaScript的补充属性/设置:window.print()启用背景 [英] Supplementary properties/settings for JavaScript:window.print() to enable Backgrounds by default

查看:1021
本文介绍了默认情况下,JavaScript的补充属性/设置:window.print()启用背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的 打印此页 按钮一个特殊的魔法属性,它自动启用默认未设置的属性(见图)即打印div颜色和bg图像的背景等。

I would like tot give my Print this Page button a special magical property sothat it automatically enabled the by default unset property (see picture) namely to Do Print the Backgrounds of div colors and bg images etc.

<a href="#" onclick="javascript:window.print()"><? echo __('Print'); ?></a>

作为答案的线索,想法,代码,答案或建议都是非常受欢迎的,暗示着这个梦想成真。提前感谢。

Clues, ideas, code, answers or suggestions as answers are all tremmendously welcome and I a will appreciate any hints at all for this dream to come true. Thanks in advance.

>

推荐答案

很遗憾,这是无法做到的。默认情况下,此选项在所有浏览器中都已停用(除非用户在其设置中进行更改)。

This cannot be done, unfortunately. This is disabled across all browsers by default (unless a user changes it in their settings).

这篇关于默认情况下,JavaScript的补充属性/设置:window.print()启用背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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