实现的效果:
编辑
1.在公共样式添加:
<style type="text/css"> body{ -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; filter: gray; } *{ filter: gray; } </style>
![点击并拖拽以移动](/i/l/?n=23&i=blog/1403020/202212/1403020-20221201123928459-1754755145.gif)
2.添加:
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <meta http-equiv="x-ua-compatible" content="ie=7">
![点击并拖拽以移动](/i/l/?n=23&i=blog/1403020/202212/1403020-20221201123928459-1754755145.gif)
刷新页面没有效果,需要重新打开
标签:gray,浏览器,效果,100%,grayscale,兼容,filter,ie From: https://www.cnblogs.com/mo3408/p/16941084.html