[英]I am using “@media print” for printing my html page. Here I am getting problum with background color is not visible of modelbox
I am using “@media print” for printing my html page. 我正在使用“ @media print”来打印我的html页面。 Here I am getting problum with background color is not visible of modelbox, when I am trying to print my html page.
在这里,当我尝试打印html页面时,背景盒中的背景色不可见。
FF, Chrome is working fine but IE7 and IE8 it go off. FF,Chrome浏览器工作正常,但IE7和IE8都无法正常运行。 Here is the link : http://jsfiddle.net/9BmXv/
这是链接: http : //jsfiddle.net/9BmXv/
attached screenshot is print preview of html. 随附的屏幕截图是html的打印预览。
Browsers usually have a user preference along the lines of "Print backgrounds" which is turned off by default (to avoid burning through vast amounts of ink). 浏览器通常具有“打印背景”行的用户首选项,默认情况下已将其关闭(以避免燃烧大量墨水)。 This cannot be overridden by page authors.
页面作者不能覆盖此设置。
Consequently, print designs should almost always aim for a plain white background. 因此,印刷设计几乎应始终以纯白色背景为目标。
With a design like that, since the main content is covered up, you probably should display: none
the main content so you are just printing the area you care about. 使用这样的设计,由于主要内容被掩盖了,您可能应该
display: none
主要内容,因此仅打印您关心的区域。
It's a setting in IE. 这是IE中的设置。 I don't think there's a great deal you can do about it other than design your page to work well when printed with white / transparent backgrounds
我认为除了将页面设计为在白色/透明背景下打印时可以正常工作以外,您没有其他办法可以做
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.