Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] 第207天 当全国哀悼日时,怎么让整个网站变成灰色呢? #1497

Open
haizhilin2013 opened this issue Nov 8, 2019 · 3 comments
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第207天 当全国哀悼日时,怎么让整个网站变成灰色呢?

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Nov 8, 2019
@jsThin
Copy link

jsThin commented Nov 9, 2019

body{ filter:Gray; }

@ZedCoding
Copy link

body{ filter:Gray; }

应该是 filter: grayscale(1) 吧

@xgqfrms
Copy link

xgqfrms commented Nov 15, 2019

CSS filter

grayscale

https://developer.mozilla.org/en-US/docs/Web/CSS/filter

body{
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
}

/* OR */

body{
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css css
Projects
None yet
Development

No branches or pull requests

4 participants