在特殊时期需要将网站灰白色,将以下代码写入CSS文件中即可实现整站灰色效果。
/*网站整体灰白*/ body { -webkit-filter: grayscale(100%); /* webkit */ -moz-filter: grayscale(100%); /*firefox*/ -ms-filter: grayscale(100%); /*ie9*/ -o-filter: grayscale(100%); /*opera*/ filter: grayscale(100%); }
文章源自Eight Point-http://www.8oio.com/98.html
文章源自Eight Point-http://www.8oio.com/98.html文章源自Eight Point-http://www.8oio.com/98.html继续阅读
评论