今天霍金大大走了,一些知名网站将网站设置成了灰色,如下图所示:
实现这种效果很简单,只需要一句css代码:filter: grayscale(100%);,将其放到body元素的样式里面就行了。我们自己实现的效果:
filter: grayscale(100%);
设置前:
设置后: