Page
Add shadow effect to the picture can make the picture more three-dimensional, the following describes three kinds of production methods:
The first use of image editing software
The most commonly used image editing software is Photoshop, the production process is as follows:
1, choose a picture;
2, open Photoshop, create a background copy layer for the picture;
3, the layer for the stroke and shadow settings;
4, adjust the size of the canvas;
5, keep the picture as a JPG file. See figure below:
Add shadow effect to the picture can make the picture more three-dimensional, the following describes three kinds of production methods:
The first use of image editing software
The most commonly used image editing software is Photoshop, the production process is as follows:
1, choose a picture;
2, open Photoshop, create a background copy layer for the picture;
3, the layer for the stroke and shadow settings;
4, adjust the size of the canvas;
5, keep the picture as a JPG file. See figure below:
The third use of layer production
Refer to the following code:
< HTML >
< head >
< title > Layer Picture Shadow </title >
< meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
< body bgcolor= "#FFFFFF" text= "#000000" >
< div id= "Layer1" style= "position:absolute;left:0px; top:0px; width:246px; height:186px; Z-index:1 ">
< img src= "http://edu.cnzz.cn/NewsInfo/sample.jpg" width= "height=" "180" style= "Border:white 3 solid" >
< div id= "Layer2" style= "position:relative; left:10px; top:-180px; width:260px; height:200px; 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= 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 >
after doing well the effect is as follows: