x
1
2
<html>
3
<head>
4
<style>
5
img {
6
filter: contrast(200%) brightness(150%);
7
/* Chrome, Safari, Opera */
8
filter: contrast(200%) brightness(150%);
9
}
10
</style>
11
</head>
12
<body>
13
14
<p>组合任意数量的函数来控制渲染:</p>
15
16
<img src="/examples/pineapple.jpg" alt="Pineapple" width="300" height="300">
17
18
<p><strong>注意:</strong> Internet Explorer 不支持 filter 属性。</p>
19
20
</body>
21
</html>