博客常用代码——图片类 | 1.添加图片  代码:<img src="图片地址"; width="图片宽" height="图片高"> | 2.图片居中:  代码:<p align="center"><img src="图片地址"; width="图片宽" height="图片高"> 将其中的center换为left或者right即为图片居左或居右 | 3.横向渐变透明 代码: <center><img src="图片网址" style="filter=alpha(opacity=100,style=1,finishopacity=0)"> | 4.圆形渐变透明 代码: <center><img src="图片网址" style="filter=alpha(opacity=100,style=2,finishopacity=0)"></center> | 5.X形渐变透明 代码: <center><img src="图片网址" style="filter=alpha(opacity=100,style=3,finishopacity=0)"></center> | 6.黑白效果图片 代码: <center><img src="图片网址" style="filter:'gray'"></center> | 7.X光效果(底片) 代码: <center><img src="图片网址" style="filter:'xray'"></center> | 8.浮雕效果图片 代码: <center><img src="图片网址" style="filter:progid:DXImageTransform.Microsoft.Emboss()"></center> | 9.上下颠倒图片 代码: <center><img src="图片网址" style="filter:flipv"> | 10.左右颠倒图片 代码: <center><img src="图片网址" style="filter:fliph"></center> | 11.色彩颠倒图片 代码: <center><img src="图片网址" style="filter:invert"></center> | 12.粒状阴影图片 代码: <center><img src="图片网址" style="filter:progid:DXImageTransform.Microsoft.Glow(color=#cc8888,strength=30)"></center> | 13.模糊效果图片 代码: <center><img src="图片网址" style="filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=10)"></center> | 14.水波效果(风吹)图片 代码: <center><img src="图片网址" style="filter:wave(freq=11, strength=4, phase=6, lightstrength=10)"></center> | 15.图片静态倒影 
代码:
<P align=center><IMG height=高度 src="图片地址" width=宽度><BR><IMG style="FILTER: wave (strength=3,freq=3,phase=0,lightstrength=30) blur() flipv()" height=高度 src="图片地址" width=宽度> </p> | |
向左移动的图片语法
MARQUEE 向左移动 scrollAmount=2 速度 width=500 宽度 height=100 高度(根据实际情况自设)
<MARQUEE scrollAmount=2 width=500 height=100>
<P align=center><IMG src="http://img.blog.163.com/photo/YxVC-Sp3Mkf7dYTu_MdjGg==/3713217892767419750.jpg"></P></MARQUEE>
向右移动语法:direction=right 向右移动
左右移动语法:behavior=alternate 左右移动
向上移动语法:direction=up 向上移动
向下移动语法:direction=down 向下移动
上下重合的语法
为了重合快一些,可以设置高度 height=200(相应改小)
速度 scrollAmount=2(数值越大越快)
冰雪梅祝您开心快乐  |
评论