如何让 Firefox 打印背景颜色样式? [英] How do I Make Firefox Print a Background-Color Style?

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

问题描述

我有一些简单的 CSS:

I have some simple CSS:

#someElement {
    background-color:black;
    color:white;
}

它在浏览器中看起来不错,但是当我在 Firefox 中打印它时,它显示为白底黑字.我想这是某种节省墨水的功能,但有什么办法可以解决吗?

It looks ok in the browser, but when I go to print it in Firefox it comes out as black text on a white background. I imagine this is some sort of ink-saving feature, but is there any way around it?

推荐答案

这是一个浏览器设置.在 CSS 中您无能为力.在 Windows 中 - File >页面设置... >打印背景.

Its a browser setting. There is nothing you can do in your CSS. In Windows - File > Page Setup... > Print Background.

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

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