分享

在博客上添加图片的方法

 裁决~大树 2011-02-07
 
大树欢迎您

在博客上添加图片的方法


大树欢迎您 
 
 
一、添加图片代码的方法
 
 
 1.基本代码
<img src=图片网址 width=图片宽度 height=图片高度>
 

2.给图片加边框

<table border=6 cellSpacing=2 cellPadding=1 borderColor=#841A00><tr><td><img src=图片网址 width=600 height=407></td></tr></table>

      说明:
      border="6" 表格边框的厚度
      cellspacing="2" 表格格线的厚度
      cellPadding=1 表格格线内厚度
      borderColor=#841A00 边框色彩

大树欢迎您


 
 
代码如下:
 
<table borderColor=#841a00 cellSpacing=2 cellPadding=1 align=center border=6>
                                                                                                    <tbody>
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                            <div align=center src_cetemp="http://image9.360doc.com/DownloadImg/2010/04/1912/2917547_15.jpg"><img height=450 src="http://image9.360doc.com/DownloadImg/2010/04/1912/2917547_15.jpg" width=338></div>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </tbody>
                                                                                                </table>

大树欢迎您
 
二、图片朦胧效果制作方法
 
 
A.圆形效果

      代码: 
<IMG src="图片" width=500 height=375 style="filter:Alpha(opacity=100,style=2);">
 
大树欢迎您
 
B.方形效果

      代码: 
<IMG src="图片" style="FILTER: Alpha(opacity=200,style=3)" width=500 height=375>
 
大树欢迎您
 

C.椭圆效果

      代码: 
<IMG src="图片" style="filter:Alpha(opacity=100,finishOpacity=0,style=2)" width=500 height=375>

 
 
大树欢迎您
 
 
 
22种CSS图片修饰效果演示与代码

1.单线框

<img src="图片地址" style="border:3 solid #ff0000">

效果

 

2.双线框

<img src="图片地址" style="border:5 double green">

效果:
 

3.凸出框

<img src="图片地址"style="border:25 outset #ff88ff">

效果:

 

 

4.凹进框

<img src="图片地址" style="border:25 inset #ff88ff">

效果:

 

 

5.邮票框

<table style="border:3 dashed #f6ae56" cellspacing="5" cellpadding="0" bgcolor="#f6ae56"><tr><td bgcolor="#aeffae" width=533 height=399 align=center valign=middle><img src="图片地址"></td></tr></table>

效果:

 

6.虚线框

<img src="图片地址" style="border:4 dashed #ff0000">

效果:
 

 

7.凹槽框

<img src="图片地址" style="border:25 groove green" border="0">

效果:

 

 

8.脊状框

<img src="图片地址" style="border:25 ridge green" border="0">

效果:
 
 

9.立体阴影框

<table width=400 height=400 border=2 cellpadding="15" cellspacing="3" style="filter:progid:DXImageTransform.Microsoft.Shadow(color:#f6ae56,direction:145,strength:15)"><tr><td bgcolor="#ffffff" align=center valign=middle><img src="图片地址"></td></tr></table>

效果:

 

 

10.横向渐变透明

<img src="图片地址" style="filter=alpha(opacity=100,style=1,finishopacity=0)">

效果:

 
大树欢迎您

 11.圆形渐变透明

<img src="图片地址" style="filter=alpha(opacity=100,style=2,finishopacity=0)">

效果:

 

 

12.X形渐变透明

<img src="图片地址" style="filter=alpha(opacity=100,style=3,finishopacity=0)">

效果(1)

 
效果(2)

  

13.黑白效果

<img src="图片地址" style="filter:'gray'">

效果:

 

 

14.X光效果(底片)

<img src="图片地址" style="filter:'xray'">

效果:

 

 

15.浮雕效果

<img src="图片地址" style="filter:progid:DXImageTransform.Microsoft.Emboss()">

效果:

 

 

16.上下颠倒

<img src="图片地址" style="filter:flipv">

效果:

 

 

17.左右颠倒

<img src="图片地址" style="filter:fliph">

效果:

 

 

18.色彩颠倒

<img src="图片地址" style="filter:invert">

效果:

 
大树欢迎您
 

19.粒状阴影

<img src="图片地址" style="filter:progid:DXImageTransform.Microsoft.Glow(color=#cc8888,strength=30)">

效果:

 

 

20.模糊效果

<img src="图片地址" style="filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=10)">

效果:

 
大树欢迎您

 21.水波效果(风吹)

<img src="图片地址" style="filter:wave(freq=11, strength=4, phase=6, lightstrength=10)">

效果:

 
 
大树欢迎您 

22.倒影效果

<font style="width:533;height:399"><img src="图片地址"><font style="width:533;height:399;filter:wave(strength=3,freq=3,phase=0,lightstrength=30) blur() flipv()"><img src="图片地址"></font>

效果:

 
大树欢迎您
 
 

三、在图片上添加FLASH的方法

 

 
      代码如下:
 
<table height=750 cellPadding=0 width=550 align=center background=http://image23.360doc.com/DownloadImg/2011/02/0718/8972546_1.jpg border=0>
    <tbody>
        <tr>
            <td><embed align=right src=http://imgfree.21cn.com/free/flash/4.swf width=450 height=750 type=application/x-shockwave-flash quality="high" wmode="transparent"><embed pluginspage=http://www.macromedia.com/go/getflashplayer align=right src=http://imgfree.21cn.com/free/flash/51.swf width=450 height=750 type=application/x-shockwave-flash wmode="transparent" quality="high"></embed><embed pluginspage=http://www.macromedia.com/go/getflashplayer align=right src=http://imgfree.21cn.com/free/flash/9.swf width=450 height=750 type=application/x-shockwave-flash wmode="transparent" quality="high"></embed><embed pluginspage=http://www.macromedia.com/go/getflashplayer align=right src=http://imgfree.21cn.com/free/flash/61.swf width=450 height=750 type=application/x-shockwave-flash wmode="transparent" quality="high"></td>
        </tr>
    </tbody>
</table>

 

代码为
<TABLE style="WIDTH: 324px; HEIGHT: 324px" height=300 cellPadding=1 width=300 align=center background=http://image47.360doc.com/DownloadImg/2011/12/0714/19851523_1.jpg border=1>
<TBODY>
<TR>
<TD><EMBED align=center src=http://xuanfei./2009fla/117.swf width=500 height=384 type=application/x-shockwave-flash allowScriptAccess="never" allowNetworking="internal" quality="high" wmode="transparent"> </TD></TR></TBODY></TABLE>
 
 
大树欢迎您
  
欢迎光临大树的图书馆
 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约