简洁版:
body{
filter: grayscale(100%);
zoom:1;
}
健全版:
html {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
}
注: 均不兼容IE
!
发表评论