【 tulaoshi.com - Web开发 】
请新建文件TestImage.html
注意:静态图片的十一种滤镜效果--不支持Ie7及非IE浏览器。
欢迎与邀月交流,net技术与软件架构
内容如下,(可自行修改):
代码如下:
!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测试图片效果/title
style...
.Filter1
{...}{
filter:Alpha(opacity=50,finishOpacity=80,style=0);
}
.Filter2
{...}{
filter:FlipH;
}
.Filter3
{...}{
filter:FlipV;
}
.Filter4
{...}{
filter:Gray;
}
.Filter5
{...}{
filter:Xray;
}
.Filter6
{...}{
filter:Invert;
}
.Filter7
{...}{
filter:Glow(color=#4A7AC9,strength=50);
}
.Filter8
{...}{
filter:Shadow(color=#000000,direction=135);
}
.Filter9
{...}{
filter:Dropshadow(color=#000000,offX=50,offY=50);
}
.Filter10
{...}{
filter:Blur(direction=135);
}
.Filter11
{...}{
filter:Wave(freq=7,strength=9,lightstrength=5,phase=5);
}
/style
/head
body
table width="100%" border="0" cellspacing="0" cellpadding="0"
tr
td原图br //td
/tr
tr
tdimg src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
半透明br /
opacity:开始处的透明度。br /
finishOpacity:结束处的透明度。br /
style:0为平均透明 1为线状透明 2为圆形透明 3为菱形透明br //td
/tr
tr
tdimg class="Filter1" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
左右翻转br /
/td
/tr
tr
tdimg class="Filter2" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
上下翻转br //td
/tr
tr
tdimg class="Filter3" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
灰度br //td
/tr
tr
tdimg class="Filter4" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
X光br //td
/tr
tr
tdimg class="Filter5" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
色彩对换br //td
/tr
tr
tdimg class="Filter6" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
发光边框br /
color为发光颜色代码,strength是发光强度,滤镜宽=图宽+发光强度x2,滤镜高=图高+发光强度x2+10br //td
/tr
tr
tdimg class="Filter7" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
投影边框br /
color为发光颜色代码,direction表示方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+25,濾鏡高=图高+40br //td
/tr
tr
tdimg class="Filter8" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
阴影边框br /
color为发光颜色代码,offX表示水平位移offY表示垂直位移(可正可负),滤镜宽=图宽+水平位移绝对值+10,滤镜高=图高+垂直位移绝对值+2)br //td
/tr
tr
tdimg class="Filter9" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
模糊边框br /
Direction表示方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+15,濾鏡高=图高+30br //td
/tr
tr
tdimg class="Filter10" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
tr
tdbr /
波形边框br /
Freq表示波形频率(0),strength表示振幅强度(0),lightstrength表示波峰强度(0~100愈高越黑),phase表示起始相位(0~100),滤镜宽=图宽+振幅强度x2
滤镜高=图高+振幅强度x2+10br //td
/tr
tr
tdimg class="Filter11" src="http://botu.bokee.com/photodata/2006-11-29/005/628/748/4609138/4609138.jpg" alt="" //td
/tr
/table
/body
/html
效果如下: