av网站免费线看精品_国产做a爱视频免费不_深爱激情网开心五月天_伊人五月天在线视频网

 
實現(xiàn)頁面圖片陰影特效
發(fā)布時間:2005-03-31   瀏覽次數(shù):1229036

實現(xiàn)頁面圖片陰影

給圖片加上陰影效果可以使圖片更具有立體感,下面介紹三種制作方法:

種 利用圖象編輯軟件

最常用的圖象編輯軟件是Photoshop,制作過程如下:

1、選取一張圖片;



2、打開Photoshop,為該圖片建立一背景復(fù)本圖層;

3、對該圖層進行描邊和陰影設(shè)置;

4、調(diào)整畫布大;

5、將圖片保持為jpg文件。見下圖:

第二種 利用表格制作

請參看下列代碼:



< html >
< head >
< title >表格圖片陰影< /title >
< meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
< /head >

< body bgcolor="#FFFFFF" text="#000000" >
< table width="263" border="0" cellspacing="0" cellpadding="0" height="3" >
< tr >
< td valign="top" width="243" height="183" colspan="2" rowspan="2" >< img src="sample.jpg" width="240" height="180" >< /td >
< td width="" height="" >< /td >
< /tr >
< tr >
< td width="" height="163" bgcolor="#000000" style="filter:Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=0) Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=10, FinishX=0, FinishY=0)" >< /td >
< /tr >
< tr >
< td width="" height="" >< /td >
< td width="223" height="" bgcolor="#000000" style="filter:Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=0, FinishY=100) Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=10, StartY=0, FinishX=0, FinishY=0)" >< /td >
< td width="" height="" bgcolor="#000000" style="filter:Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=0, FinishY=100) Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=100, FinishY=0)" >< /td >
< /tr >
< /table >
< /body >
< /html >


做好后的效果如下:

 




第三種 利用層制作

參看下列代碼:


< html >
< head >
< title >層圖片陰影< /title >
< meta http-equiv="Content-Type" content="text/html; charset=gb2312" >

< /head >

< body bgcolor="#FFFFFF" text="#000000" >

< div id="Layer1" style="position:absolute;left:0px; top:0px; width:246px; height:186px; z-index:1" >
< img src="sample.jpg" width="240" height="180" style="border:white 3 solid" >
< div id="Layer2" style="position:relative; left:10px; top:-180px; width:260px; height:0px; z-index:-1; background-color: #000000; layer-background-color: #000000; border: 1px none #000000;filter:Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=85, FinishX=0, FinishY=100) Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=90, StartY=0, FinishX=100, FinishY=0) Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=10, StartY=0, FinishX=0, FinishY=0) Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=10, FinishX=0, FinishY=0)" >< /div >
< /div >

< /body >
< /html >

做好后的效果如下:

 

立即預(yù)約