Chrome打印样式表无效

时间:2014-11-11 14:11:32

标签: html css google-chrome printing

我有一个在IE中完美运行的样式表,删除页眉和页脚,并以更易于打印的方式显示我的内容。但是在使用铬合金打印时,它不起作用。如果我在开发人员工具中模拟打印介质查询。

我怀疑这是因为Chrome在打印前将文档转换为pdf。有没有办法解决这个问题?

  • 在我的html代码中,我的css文件链接如下:

<link href="/css/form.css" rel="stylesheet" type="text/css" /> <link href="../content/PrintConfirmation.css" rel="stylesheet" media="print"/>

正如我所说,这在打印时在IE中完美运行,但在打印时使用chrome,它不会。

1 个答案:

答案 0 :(得分:0)

重复问题,请参阅答案:Chrome: Print preview differs from simulate CSS media print

特别是transition: none !important;