我有基于 Bootstrap 和 Flat UI css 的页面,我想打印它(保存为 PDF)。
但它不能打印标题的颜色和进度条的颜色。我在那里看到了教程,但它没有用。
Here is live demo.
最佳答案
看起来像 Bootstrap css 中的以下代码片段导致这个问题,我只是为我的.
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important; // Black prints faster: h5bp.com/s
box-shadow: none !important;
text-shadow: none !important;
}
关于twitter-bootstrap - Chrome 打印到带有背景颜色的 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30762784/