使用CSS设置灰度效果
灰度效果用于将对象的颜色转换为256个灰度阴影。在此过滤器中使用以下参数-
示例
您可以尝试运行以下代码来设置灰度效果-
<html>
<head>
</head>
<body>
<img src = "/css/images/logo.png" alt = "CSS Logo" style = "Filter: Gray">
<p>Text Example:</p>
<div style = "width: 357;
height: 50;
font-size: 30pt;
font-family: Arial Black;
color: red;
Filter: Gray">
CSS Tutorials
</div>
</body>
</html>