将页面置灰

在html上设置以下代码,就能将页面设置成灰色

body{
    
    
  filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
  -webkit-filter:grayscale(100%);
  -moz-filter:grayscale(100%);
  -ms-filter:grayscale(100%);
  -o-filter:grayscale(100%);
  filter:grayscale(100%);
}

猜你喜欢

转载自blog.csdn.net/weixin_47818125/article/details/128231462