In web, the rounded corner effect is very common. Previously, it was imitated by images. Now it can be achieved directly using CSS. For example:CodeAs follows:
HTML code:
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en">
<HTML>
<Head>
<Title> untitled document </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = iso-8859-1">
</Head>
<Style type = "text/CSS">
Body {
Padding: 20px;
Background-color: # ffcc66;
Font: 100.01% "trebuchet ms", "verdana", "Arial", "Sans-serif ";
Color: #000000;
}
H1, H2, P {margin: 0 10px}
H1 {font-size: 250%; color: # fff}
H2. {font-size: 200%; color: # f0f0f0}
P {padding-bottom: 1em}
H2 {padding-top: 0.3em}
Div # roundconner {margin: 0 10%; Background: # 9bd1fa}
B. rtop, B. rbottom {display: block; Background: # ffcc66}
B. rtop B, B. rbottom B {display: block; Height: 1px;
Overflow: hidden; Background: # 9bd1fa}
B. R1 {margin: 0 5px}
B. R2 {margin: 0 3px}
B. R3 {margin: 0 2px}
B. rtop B. R4, B. rbottom B. R4 {margin: 0 1px; Height: 2px}
</Style>
<Body>
<Div id = "roundconner">
<B class = "rtop"> <B class = "R1"> </B> <B class = "R2"> </B> <B class = "R3"> </B> <B class = "r4"> </B>
123123123
Zvzvzvxzv
Asdfaer23424310412313
Afasdfasdfasdfasd
Dadsfasdfsaaaaaaaaaaaaa
Asdfaaaaaaaaaaaaaaaaaaaaaaaaaaafadsfasdfasdfsaf
<B class = "rbottom"> <B class = "r4"> </B> <B class = "R3"> </B> <B class = "R2"> </B> <B class = "R1"> </B>
</Body>
</Html>
You only need to create an HTML file and replace all the content in it with the above Code to see the effect.