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 filter #93

Open
xgqfrms opened this issue Nov 15, 2019 · 3 comments
Open

CSS filter #93

xgqfrms opened this issue Nov 15, 2019 · 3 comments

Comments

@xgqfrms
Copy link
Owner

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%);
}
@xgqfrms
Copy link
Owner Author

xgqfrms commented Nov 15, 2019

https://github.com/haizlin/fe-interview/issues/1497#issuecomment-554172850

@xgqfrms
Copy link
Owner Author

xgqfrms commented Nov 15, 2019

body{
  filter: grayscale(1) blur(1px);
}

image

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

No branches or pull requests

1 participant