这算是相对比较优雅的方案了
html{
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
这里是对html
标签选择器使用了filter
选项。理论能在最上层,将所有的包括图片和代码在的元素渲染成灰色。
这算是相对比较优雅的方案了
html{
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
这里是对html
标签选择器使用了filter
选项。理论能在最上层,将所有的包括图片和代码在的元素渲染成灰色。
评论(0)