代码示例:(标识:css_ex_images_filters)
<!DOCTYPE html>
<html>
<head>
<style>
img {
  width: 33%;
  height: auto;
  float: left; 
  max-width: 235px;
}

.blur {filter: blur(4px);}
.brightness {filter: brightness(250%);}
.contrast {filter: contrast(180%);}
.grayscale {filter: grayscale(100%);}
.huerotate {filter: hue-rotate(180deg);}
.invert {filter: invert(100%);}
.opacity {filter: opacity(50%);}
.saturate {filter: saturate(7);}
.sepia {filter: sepia(100%);}
.shadow {filter: drop-shadow(8px 8px 10px green);}
</style>
</head>

<body>

<p><b>注释:</b>Internet Explorer 或 Edge 12 不支持 filter 属性。</p>

<img src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="blur" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="brightness" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="contrast" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="grayscale" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="huerotate" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="invert" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="opacity" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="saturate" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="sepia" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">
<img class="shadow" src="/static/demo/images/tulip.jpg" alt="Pineapple" width="300" height="300">

</body>
</html>
运行结果: