Chrome:打印预览与模拟CSS媒体打印不同 [英] Chrome: Print preview differs from simulate CSS media print

查看:405
本文介绍了Chrome:打印预览与模拟CSS媒体打印不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Chrome 26中打印我的网页时出现问题,其中表格显示为灰色背景颜色。当我使用模拟CSS媒体打印的Chrome浏览页面时看起来不错

I am having an issue when I print my page in Chrome 26 where tables appear with grey background colour. When I view the page in chrome with simulated CSS media print it looks fine

在Safari中打印时,一切正常。
任何人都知道如何解决这个问题?

When printing in Safari everything works fine. Anyone knows how to fix this issue?

推荐答案

print css

Here is the solution: Add this to your print css

* {transition: none !important}

请参阅: http:/ /wisercoder.com/print-preview-significantly-different-inspector-chrome/

这篇关于Chrome:打印预览与模拟CSS媒体打印不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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