Home  >  Article  >  Web Front-end  >  Color web page turns into black and white CSS code

Color web page turns into black and white CSS code

巴扎黑
巴扎黑Original
2017-06-09 14:09:192477browse

Web page gray black\black and white CSS code to make the web page black CSS code:

<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>

Put the code before to make the corresponding web page black and gray!

Color web page turns into black and white CSS code

Let the color of the web page become black and white

Color web page turns into black and white CSS code

How to change the color of the web page to black and white The CSS code is as above, and you can add it The web page changes to black and white!

The above is the detailed content of Color web page turns into black and white CSS code. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn