Implement a shadow effect on a page picture

Source: Internet
Author: User
Tags add copy implement
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:




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.