This function is generally implemented as follows:
First, use PS to make the image transparent. Click "new"> "layer"> "layer background", select a layer with the magic wand, and press "delete" to delete Beijing. The image is roughly as follows:
Store the image as GIF and check the transparency in the pop-up index color. The PGN format is not transparent on IE6, so it must be GIF.
Add a div to the web form. Place the IMG label in the div.
<Div id = "layer1">
<Asp: Image id = "image1" runat = "server"/>
</Div>
And then write it in CSS. # Content in layer1 {} is the attributes of the image.
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head id = "head1" runat = "server">
<Title> No title page </title>
<Style type = "text/CSS">
# Layer1
{
Position: absolute;
Width: 200px;
Height: 115px;
Z-index: 1;
Left: 150px;
Top: 210px;
}
</Style>
The image size and the distance from the upper left corner can be adjusted.