本文介绍了Chrome:打印预览不同于模拟 CSS 媒体打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Chrome 26 中打印页面时遇到问题,其中表格显示为灰色背景.
I am having an issue when I print my page in Chrome 26 where tables appear with grey background colour.
当我使用模拟 CSS 媒体打印查看 chrome 页面时,它看起来不错
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?
推荐答案
解决方案如下:将此添加到您的打印 css
Here is the solution:Add this to your print css
* {transition: none !important}
请参阅:https://nicolasbouliane.com/blog/print-preview-显着不同-inspector-chrome
这篇关于Chrome:打印预览不同于模拟 CSS 媒体打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!