图片滤镜的效果
时间:2007年03月06日
内容来源: 互诺科技
浏览量:0
一.图片的滤镜效果
准备:插入图片后进入"原代码编辑"模式,找到插入的图片代码域,对其进行修改.
比如插入右图后点击"显示原代码",找到相应的代码.为:
<IMG src="/userfiles/Auto/2012626">
1.透明效果
格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Alpha(opacity=100,finishOpacity=0,style=0)">
或
<div style="filter:Alpha(opacity=100,finishOpacity=0,style=0) ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
涉及到的属性:修改数值对应即可
opacity:开始处的透明度
finishOpacity:结束处的透明度
style:0,平均透明 1,线状透明 2,圆形透明 3,菱形透明
效果:
opacity=50,finishOpacity=0,style=0
opacity=100,finishOpacity=0,style=1
opacity=100,finishOpacity=0,style=2
opacity=100,finishOpacity=0,style=3
2.翻转效果
左右翻转格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:FlipH">
或
<div style="filter:FlipH ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
上下翻转格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:FlipV">
或
<div style="filter:FlipV ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
效果:
3.变调效果
灰调格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Gray">
或
<div style="filter:Gray ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
X光效果:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Xray">
或
<div style="filter:Xray ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
色彩对换:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Invert">
或
<div style="filter:Invert ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
效果:
4.边框效果(来自小缘人)
发光:(color为发光颜色代码,strength是发光强度,滤镜宽=图宽+发光强度x2
滤镜高=图高+发光强度x2+10)
<div style="filter:Glow(color=#4A7AC9,strength=15);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
投影:(color为发光颜色代码,direction方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+25)
濾鏡高=图高40)
<div style="filter:Shadow(color=#4A7AC9,direction=135);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
阴影:(color为发光颜色代码,offX水平位移offY垂直位移(可正可负),滤镜宽=图宽+水平位移绝对值+10,滤镜高=图高+垂直位移绝对值+20)
<div style="filter:Dropshadow(color=#333333,offX=5,offY=5);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
模糊:(direction方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+15,濾鏡高=图高+30)
<div style="filter:Blur(direction=135);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
波形:(freq频率(>0)strength振幅强度(>0)lightstrength波峰强度(0~100愈高越黑)phase起始相位(0~100),滤镜宽=图宽+振幅强度x2
滤镜高=图高+振幅强度x2+10)
<div style="filter:Wave(freq=7,strength=9,lightstrength=5,phase=5);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
效果:
准备:插入图片后进入"原代码编辑"模式,找到插入的图片代码域,对其进行修改.
比如插入右图后点击"显示原代码",找到相应的代码.为:
<IMG src="/userfiles/Auto/2012626">
1.透明效果
格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Alpha(opacity=100,finishOpacity=0,style=0)">
或
<div style="filter:Alpha(opacity=100,finishOpacity=0,style=0) ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
涉及到的属性:修改数值对应即可
opacity:开始处的透明度
finishOpacity:结束处的透明度
style:0,平均透明 1,线状透明 2,圆形透明 3,菱形透明
效果:
opacity=50,finishOpacity=0,style=0
opacity=100,finishOpacity=0,style=1
opacity=100,finishOpacity=0,style=2
opacity=100,finishOpacity=0,style=3
2.翻转效果
左右翻转格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:FlipH">
或
<div style="filter:FlipH ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
上下翻转格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:FlipV">
或
<div style="filter:FlipV ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
效果:
3.变调效果
灰调格式:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Gray">
或
<div style="filter:Gray ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
X光效果:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Xray">
或
<div style="filter:Xray ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
色彩对换:
<img src="http://www.admin5.com/article/20070306/图片地址" style="filter:Invert">
或
<div style="filter:Invert ;width:宽;height:高"><img src="http://www.admin5.com/article/20070306/图片地址"></div>
效果:
4.边框效果(来自小缘人)
发光:(color为发光颜色代码,strength是发光强度,滤镜宽=图宽+发光强度x2
滤镜高=图高+发光强度x2+10)
<div style="filter:Glow(color=#4A7AC9,strength=15);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
投影:(color为发光颜色代码,direction方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+25)
濾鏡高=图高40)
<div style="filter:Shadow(color=#4A7AC9,direction=135);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
阴影:(color为发光颜色代码,offX水平位移offY垂直位移(可正可负),滤镜宽=图宽+水平位移绝对值+10,滤镜高=图高+垂直位移绝对值+20)
<div style="filter:Dropshadow(color=#333333,offX=5,offY=5);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
模糊:(direction方向(只能是45度的倍数如:45,90,135,180,225,270,315度),滤镜宽=图宽+15,濾鏡高=图高+30)
<div style="filter:Blur(direction=135);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
波形:(freq频率(>0)strength振幅强度(>0)lightstrength波峰强度(0~100愈高越黑)phase起始相位(0~100),滤镜宽=图宽+振幅强度x2
滤镜高=图高+振幅强度x2+10)
<div style="filter:Wave(freq=7,strength=9,lightstrength=5,phase=5);width:滤镜宽;height:滤镜高" align=center><br><img src="http://www.admin5.com/article/20070306/图片地址"></div>
效果: