CSS媒体类型打印中的background-color属性 [英] background-color property in CSS media type print

查看:471
本文介绍了CSS媒体类型打印中的background-color属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CSS媒体类型打印中使用background-color属性。



问题是浏览器在打印预览中不显示背景颜色或背景图像。

如果我检查浏览器显示背景图像和颜色的设置它工作正常。



如何解决这个问题?

I am using the background-color property in CSS media type print.

The problem is Browser does not show background-color or background-image in print preview.
if i check the setting of browser show background image and color it's work fine.

How can this be solved?

推荐答案

页面发送方式的设置之一打印机(可能是从您的浏览器开始)是不打印背景。这通常是默认值,因为背景(通常)会干扰文本的可读性(特别是较小的字体)。



检查设置 - 如果相关则考虑如果他们不改变他们的设置,它将如何在其他人的浏览器上工作。
One of the settings for how a page is sent to a printer (presumably, then, from your browser) is to not print the background. This is usually the default as the background (generally) interfere with the the readability of text (especially smaller fonts).

Check the settings - and then consider, if relevant how it will work on other people's browsers if they don't change their settings.


这篇关于CSS媒体类型打印中的background-color属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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