Home >Web Front-end >CSS Tutorial >【CSS】The website page turns gray
Makes all elements of the website gray. It is supported by all browsers and uses filters. It is more performance-intensive. It is recommended to be used as a temporary solution.
The CSS code is as follows:
body{ -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); filter:gray; -webkit-transform: translateZ(0); }