Created
April 3, 2020 17:42
-
-
Save wulingyun/635a27aa8eaae91c8cf85eba3d639792 to your computer and use it in GitHub Desktop.
黑白悼念模式网页
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 在网页的 head 部分加入以下内容,可以将网页改为黑白悼念模式 --> | |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> | |
<style type="text/css"> | |
html { | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); | |
filter: url(data:image/svg+xml;utf8,;#grayscale); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); | |
-webkit-filter: grayscale(1); | |
} | |
* { | |
filter: gray; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment