CSS如何打印具有背景颜色的表格(无打印设置更改)

前端之家收集整理的这篇文章主要介绍了CSS如何打印具有背景颜色的表格(无打印设置更改)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
目的是打印带有彩色td-s的表。
我需要一种方式正确的所有类型的浏览器。

有什么办法吗?

解决方法

从这里引述: 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.

原文链接:https://www.f2er.com/css/221330.html

猜你在找的CSS相关文章