Sample Code of CSS3 plotting and css3 plotting
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> CSS3 drawing instance Code </title>
<Style type = "text/css">
*{
Margin: 0;
Padding: 0;
}
Body {
Background: # fff;
}
. Color1 {
Background: # ffb400;
}
. Color2 {
Background: # e78500;
}
. Color3 {
Background: # bd5d00;
}
. Color4 {
Background: #9e3300;
}
. Color5 {
Background: #772400;
}
Div {
Overflow: hidden;
}
. Wrapper {
Width: pixel PX;
Height: pixel PX;
Left: 50%;
Top: 50%;
Margin:-225px 0 0-225px;
Position: absolute;
}
. Top {
Width: 48px;
Height: 62px;
Top: 9px;
Left: 232px;
Position: absolute;
}
. Top. right {
Width: 48px;
Height: 62px;
Border-radius: 35px 40px 0px 0px/15px 70px 10px 0px;
Z-index: 1;
Position: absolute;
}
. Top. left {
Width: 160px;
Height: 320px;
Top: 7px;
Left:-93px;
Z-index: 2;
Border-radius: 160px/320px;
Position: absolute;
}
. Top. mask1 {
Width: 40px;
Height: 100px;
Border-radius: 40px/100px;
Background: # fff;
Z-index: 3;
Top: 0px;
Left:-32px;
Position: absolute;
}
. Top. mask2 {
Width: 200px;
Height: 200px;
Border-radius: 200px;
Background: # fff;
Z-index: 4;
Top: 55px;
Left:-92px;
Position: absolute;
}
. Center {
Width: 340px;
Height: 192px;
Margin: 79px 0 0 57px;
}
. Center. box1 {
Width: 360px;
Height: 360px;
Border-radius: 180px;
Margin: 0 0 0-20px;
}
. Center. box1. box1_1 {
Width: 300px;
Height: 400px;
Border-radius: 200px/300px;
Margin:-40px 0 0-20px;
}
. Center. box2 {
Width: 900px;
Height: 900px;
Background: # fff;
Margin:-265px 0 0-383px;
Border-radius: 900px;
}
. Bottom {
Width: 550px;
Height: 330px;
Border-radius: 550px/330px;
Margin:-75px 0 0-122px;
Transform: rotate (6deg );
-Webkit-transform: rotate (6deg );
-Moz-transform: rotate (6deg );
-O-transform: rotate (6deg);/* Opera */
}
. Bottom. box1 {
Width: 320px;
Height: 600px;
Border-radius: 320px/600px;
Margin:-pixel PX 0 0 180px;
Transform: rotate (5deg );
-Webkit-transform: rotate (5deg );
-Moz-transform: rotate (5deg );
-O-transform: rotate (5deg);/* Opera */
}
. Bottom. box2 {
Width: 320px;
Height: 600px;
Border-radius: 320px/600px;
Margin: 35px 0 0-35px;
Transform: rotate (3deg );
-Webkit-transform: rotate (3deg );
-Moz-transform: rotate (3deg );
-O-transform: rotate (3deg);/* Opera */
}
. Bottom. box3 {
Width: 320px;
Height: 600px;
Border-radius: 320px/600px;
Margin: 30px 0 0-30px;
}
</Style>
</Head>
<Body>
<Div> http://www.999jiujiu.com/</div>
<Div class = "wrapper">
<Div class = "top">
<Div class = "right color3"> </div>
<Div class = "left color1"> </div>
<Div class = "mask1"> </div>
<Div class = "mask2"> </div>
</Div>
<Div class = "center">
<Div class = "box1 color2">
<Div class = "box1_1 color1"> </div>
</Div>
<Div class = "box2"> </div>
</Div>
<Div class = "bottom">
<Div class = "box1 color5">
<Div class = "box2 color4">
<Div class = "box3 color3"> </div>
</Div>
</Div>
</Div>
</Div>
</Body>
</Html>