方法一:
<style type="text/css">
html{
     filter:progid:DXImageTransForm.Microsoft.BasicImage(grayscale=1);-webkit-filter:saturate(0)
}
</style>

方法二

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

方法三

<style> 
html { 
      -webkit-filter: grayscale(100%); 
      -moz-filter: grayscale(100%); 
      -ms-filter: grayscale(100%); 
      -o-filter: grayscale(100%); 
      filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);  
      _filter:none; 
 } 
</style>

 

posted on 2022-11-30 20:55  铭の  阅读(54)  评论(0编辑  收藏  举报

友情链接:箫竹影(Java工程师)