Flatten color depth using CSS

PHPz
Release: 2023-09-05 15:13:02
forward
1033 people have browsed it

使用 CSS 使颜色深度变平

To flatten the color depth you need to create X-rays.

The following parameters are used in this filter-

Xray

Grayscale and flatten color depth.

tbody>
S.No Parameters and description
1

Example

You can try running the following code to create an X-ray effect -

Live Demo

<html>
   <head>
   </head>
   <body>

      <img src = "/css/images/logo.png" alt = "CSS Logo" style = "Filter: Xray"">

      <p>Text Example:</p>

      <div style = "width: 357; height: 50; font-size: 30pt; font-family: Arial Black; color: red; style = "Filter: Xray">CSS Tutorials</div>
   </body>
</html>
Copy after login

The above is the detailed content of Flatten color depth using CSS. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template