|
整体网站设置黑白调css:
- 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)
- }
- *{
- -moz-filter: grayscale(100%);
- -ms-filter: grayscale(100%);
- -o-filter: grayscale(100%);
- filter: gray;
- }
复制代码
网站部分内容设置黑白调css,div的class="showHeibai"的内容设置:
- .showHeibai{
- -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)
- }
复制代码
|
|