打印在Chrome的背景颜色 [英] Print Background colours in Chrome

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

问题描述

我试图在chrome中打印一个PHP生成的文档,在浏览器上看起来不错链接到我想打印的页面但是我的打印机不会打印任何彩色背景,任何人都可以提出任何建议吗?

I am trying to print a PHP generated document in chrome, on the browser it looks fine Link to the page I want to print But my printer will not print any coloured backgrounds, can anyone offer any suggestions please? Can I do this with CSS?

推荐答案

您可以在浏览器中调整背景颜色和图片是否打印。查看您的浏览器打印选项。

You adjust in the browser, whether the background colors and images are printed. See your browsers printing options.

Google Chrome从版本26 (2013年3月)开始提供此功能。

Google Chrome offers this feature starting from version 26 (march 2013).

此外,从版本17开始,Chrome允许通过使用 -webkit-print-color-adjust:exact; 在元素CSS中打印背景。

Also starting from version 17, Chrome allows changing the background print behavior programmatically by using -webkit-print-color-adjust:exact; in the element CSS to print the background.

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

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