对JavaScript性能的辅助/设置:window.print()使默认背景 [英] Supplementary properties/settings for JavaScript:window.print() to enable Backgrounds by default

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

问题描述

亲爱的乡亲,
我想TOT给我的 打印此页 的按钮,一个特殊的魔法属性sothat它会自动启用默认情况下未设置属性(见图片),即做打印的色彩DIV和BG图像等的背景。

Dear folks, 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>

线索,观点,code,答案或建议,答案都是tremmendously欢迎和我一会AP preciate任何提示都为这个梦想成真。先谢谢了。

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天全站免登陆