简体   繁体   English

我正在使用“ @media print”来打印我的html页面。 在这里我无法看到模型盒的背景色

[英]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.

相关问题 jQuery无法在我的HTML页面上工作。 我没有按预期在页面的onLoad上收到警报 - jquery not working on my html page. I am not getting alert onLoad of the page as expected 调整页面大小时,为什么元素重叠。 我正在使用百分比 - Why are my elements overlapping when I resize the page. I am using percentages 如何在HTML页面的div中为文本内容赋予背景色。 - How can I give background color to the text content inside a div in my html page. 媒体查询无法在我的HTML代码中使用,不确定在这里我做错了什么 - Media Queries not working in my HTML code, Not sure what I am doing wrong here 无法将我的 php 页面重定向到我的 html 谢谢页面。 我究竟做错了什么? - Can't redirect my php page to my html thank you page. What am I doing wrong? 我在我的 html 页面上得到了这个 [object HTMLSpanElement] - I am getting this [object HTMLSpanElement] on my html page 如何在我的HTML中运行Windows Media Player视频,但出现错误代码? - how to run windows media player video in my html i am getting error Code attached? 我如何将数据(变量)从一个 html 页面传输到另一个页面,这里我使用 html 和 django 框架 - How i transfer data(variables) from one html page to another page, here i am using html & django framework 我正在使用javascript在另一个HTML页面中加载一些HTML页面。 它可以在Mozilla Firefox中正常工作,但不能在Google Chrome和IE10中工作 - I am using javascript to load some html page in another html page. Its working fine in Mozilla Firefox but not working in Google Chrome and IE10 PDF文件合并:在页面末尾删除空白。 我正在使用PDFBox v2.0.13实现 - PDF files merge : remove blank at end of page. I am using PDFBox v2.0.13 to achieve that
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM