最好的方法来解决CSS背景不打印 [英] Best Ways to Get Around CSS Backgrounds Not Printing

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

问题描述

通常CSS的背景不打印,但有时我使用它们来传达上下文信息。什么是最好的方式来绕过CSS的背景,不打印,但你真的想要显示。例子,我目前工作是一个表,显示财务信息。不同的背景颜色用于表示数字是好(例如,非常有利可图,有利可图,中性,负面,非常负面)。

解决方案

两个建议:


  1. 表格行中的颜色代码文字



  2. 您甚至可以使用背景颜色将这些内容合并到正常视图中。 / p>

    It often works out great that the CSS backgrounds don't print, however, sometimes I use them to convey contextual information. What is the best way for getting around CSS backgrounds that don't print but you really want to display. The example, I'm currently working on is a table that displays financial information. Different background colors are used to indicate how "good" a number is (e.g. very profitable, profitable, neutral, negative, very negative).

    解决方案

    Two suggestions:

    1. Color-code text in the table rows
    2. Add color-coded icons to the beginning or end of the table rows

    You could even incorporate these into the normal view with your background colors.

    这篇关于最好的方法来解决CSS背景不打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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