CSS如何打印具有背景颜色的表格(无打印设置更改) [英] CSS How to print a table with background color (without Print settings changes)

查看:244
本文介绍了CSS如何打印具有背景颜色的表格(无打印设置更改)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目的是用彩色td-s打印表格。
我需要一种适用于所有类型浏览器的方法。



有什么办法吗?

解决方案

从这里引用: CSS @media print问题与背景颜色;


如果用户已关闭打印背景
颜色和图像
他们的打印设置,没有CSS将
重写,所以总是占
。这是一个默认设置。



一旦设置,它将打印
背景颜色和图像,你有什么
将有效。 / p>

它存在于不同的地方。在
IE9beta它在Print-> Page
中找到选项纸张选项下的选项



在FireFox它在页面设置 - >
[格式&选项]选项卡。



The aim is to print table with colored td-s. I need a way correct for all types of browsers.

Is there any way?

解决方案

Quote from here: CSS @media print issues with background-color;

IF a user has "Print Background colours and images" turned off in their print settings, no CSS will override that, so always account for that. This is a default setting.

Once that is set so it will print background colours and images, what you have there will work.

It is found in different spots. In IE9beta it's found in Print->Page Options under Paper options

In FireFox it's in Page Setup -> [Format & Options] Tab under Options.

这篇关于CSS如何打印具有背景颜色的表格(无打印设置更改)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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