惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
Martin Fowler
Martin Fowler
Vercel News
Vercel News
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog RSS Feed
N
Netflix TechBlog - Medium
GbyAI
GbyAI
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
M
MIT News - Artificial intelligence
D
Docker
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog

Max Böck | Notes

18 Jan 2024 - 14:25 12 Jan 2024 - 16:23 11 Jan 2024 - 18:11 11 Jan 2024 - 16:51 04 Jan 2023 - 13:19 22 Nov 2021 - 20:55 15 Oct 2021 - 21:12 03 Sep 2021 - 16:56 03 Sep 2021 - 16:52 08 Jul 2021 - 10:04 07 Jul 2021 - 09:04 06 Jul 2021 - 20:03 07 Apr 2021 - 12:03 07 Nov 2020 - 20:11 27 Apr 2020 - 15:27 25 Apr 2020 - 19:28 08 Feb 2020 - 16:13 26 Dec 2019 - 19:47 20 Dec 2019 - 15:23 14 Dec 2019 - 14:50 10 Dec 2019 - 11:32 22 Nov 2019 - 15:36 21 Nov 2019 - 16:37 11 Nov 2019 - 13:10 29 Sep 2019 - 14:30 12 Aug 2019 - 10:13 08 Aug 2019 - 12:46 04 Aug 2019 - 02:00 09 Jun 2019 - 02:00 01 Jun 2019 - 02:00
04 Mar 2019 - 02:00
Max Böck · 2019-03-04 · via Max Böck | Notes

Usually, when writing print CSS, you would want to omit background-color declarations to improve readability (and save ink).

I had a case at work today though where I actually needed them to print. It was used in some progress indicators that didn’t make any sense without it. But some browsers ignore background-color by default in print, unless the user selects otherwise.

If you absolutely have to override that, there’s -webkit-print-color-adjust: exact.
It only works in Chrome and Safari though.

-webkit-print-color-adjust on MDN