<! 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 = UTF-8"/>
<Title> corner frame implementation in css2.0 </title>
<Style type = "text/CSS">
. Round {
Width: 200px;
Left: 100px;
Top: 100px;
Position: absolute;
Background: none;
Overflow: none;
}
. Round_conner {
Background: none;
Overflow: none;
}
. Round_body {
Height: pixel PX;
Background: # ABC;
Overflow: none;
}
. Round_body_contain {
Padding: 10px;
}
. L1,. l2,. l3,. l4 {
Font-size: 0;
Height: 1px;
Overflow: none;
Width: auto;
Background: # ABC;
Clear: both;
}
. L1 {
Margin: 0 5px;
}
. L2 {
Margin: 0 3px;
}
. L3 {
Margin: 0 2px;
}
. L4 {
Margin: 0 1px;
}
/* With borders
. Round {width: 200px; Height: 200px; left: 100px; top: 100px; position: relative; Background: none; overflow: none ;}
. Round_conner {Background: none; overflow: none ;}
. Round_body {Height: pixel PX; Background: # ABC; overflow: none; border-left: 1px #000 solid; border-Right: 1px #000 solid ;}
. Round_body_contain {padding: 10px ;}
. L1 ,. l2 ,. l3 ,. l4 {font-size: 0; Height: 1px; overflow: none; width: auto; Background: # ABC; clear: Both; border-left: 1px #000 solid; border-Right: 1px #000 solid ;}
. L1 {margin: 0 5px; Background: #000; Border: none ;}
. L2 {margin: 0 3px; border-left: 2px #000 solid; border-Right: 2px #000 solid ;}
. L3 {margin: 0 2px ;}
. L4 {margin: 0 1px ;}*/
</Style>
</Head>
<Body>
<Div class = "round">
<Div class = "round_conner">
<Div class = "L1"> </div>
<Div class = "L2"> </div>
<Div class = "L3"> </div>
<Div class = "L4"> </div>
<Div class = "L4"> </div>
</Div>
<Div class = "round_body">
<Div class = "round_body_contain"> asdasd. <br/>
Asdasd. <br/>
Asdasd. <br/>
</Div>
</Div>
<Div class = "round_conner">
<Div class = "L4"> </div>
<Div class = "L4"> </div>
<Div class = "L3"> </div>
<Div class = "L2"> </div>
<Div class = "L1"> </div>
</Div>
</Div>
</Body>
</Html>
In addition, FF, Safari and chrome can use the following attributes to set the rounded corner (CSS 3.0)
-Moz-border-radius: 4px;
-WebKit-border-radius: 4px;