ex001.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>CSS图象滤镜</title>
<link href="ex001.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p><img src="245352.jpg" width="400" height="300" class="img"/><img src="245352.jpg" width="400" height="300" class="img2" /></p>
<p><img src="245352.jpg" width="400" height="300" class="img3" /><img src="245352.jpg" width="400" height="300" class="img4" /></p>
<p><img src="245352.jpg" width="400" height="300" class="img5" /><img src="245352.jpg" width="400" height="300" /></p>
<p><img src="245352.jpg" width="400" height="300" class="img6" /><img src="245352.jpg" width="400" height="300" class="img7" /></p>
<div class="text1">Blur 滤镜</div><div class="text2">Blur 滤镜</div><div class="text3">Blur 滤镜</div>
<div class="text4">Blur 滤镜</div><div class="text5">Blur 滤镜</div><div class="text6">Blur 滤镜</div></body>
</html>
ex001.css
.text1 {
height: 50px;
width: 100px;
filter:wave(Add="0",Phase="4",Freq="5",LightStrength="5",Strength="2");
font-family: "宋体";
font-size: 11pt;
font-weight: bolder;
}
.text2 {
height: 50px;
width: 100px;
filter:blur(add=true,direction=135,strength=1);
font-family: "宋体";
font-size: 11pt;
font-weight: bolder;
}
.text3 {
height: 50px;
width: 100px;
filter: DropShadow(Color=gray, OffX=4, OffY=4, Positive=1);
}
.text4 {
height: 50px;
width: 100px;
font-family: "宋体";
font-size: 11pt;
font-weight: bolder;
filter: Glow(Color=#ffff00, Strength=5);
}
.text5 {
height: 50px;
width: 100px;
filter:shadow(color=blue,direction=225);
font-family: "宋体";
font-size: 11pt;
font-weight: bolder;
}
.text6 {
height: 50px;
width: 100px;
font-family: "宋体";
font-size: 11pt;
font-weight: bolder;
filter: DropShadow(Color=gray, OffX=4, OffY=4, Positive=1);
}
.img {
cursor: wait;
filter: FlipH;
}
.img2 {
filter: FlipV;
}
.img3 {
filter: Alpha(Opacity=80, FinishOpacity=0, Style=2, StartX=0, StartY=0, FinishX=400, FinishY=300);
}
.img4 {
filter: Alpha(Opacity=80, FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=400, FinishY=300);
}
.img5 {
filter:blur(add=ture,direction=135,strength=10);
}
.img6 {
filter: Invert;
}
.img7 {
filter: Light;
}
效果演示如下: