According to the analysis on the Google Analytics interface, I personally think it is good. Although the elements are a little more complex, and the appearance is not so beautiful, you can set the width and height of the rounded rectangle at will, which is flexible.
I wonder why Google uses element B.
Page source code: HTML code
- <! 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> </title>
- <Style type = "text/CSS">
- HTML, body {
- Font-size: 12px;
- }
- . Round_border,. round_border B {
- Display: block;
- Text-align: center;
- }
- . Round_border_layer3,. round_border_layer2,. round_border_layer1,
- . Round_border_content {
- Border: 1px solid # c4c4c4;
- Border-width: 0 1px 0 1px;
- Height: 1px;
- Overflow: hidden;
- }
- . Round_border_layer3 {
- Margin: 0 3px;
- Background: # c4c4c4;
- }
- . Round_border_layer2 {
- Margin: 0 2px;
- }
- . Round_border_layer1 {
- Margin: 0 1px;
- }
- . Round_border_content {
- Height: 300px;
- Padding: 3px 6px;
- }
- /* Only for better appearance, not necessary, http://wallimn.iteye.com */
- . Round_border_layer2,. round_border_layer1 {
- Border-color: # d3d4d5;
- }
- /****************** Control bar ****************** ****/
- . Controlbar_border_layer3,. controlbar_border_layer2,. controlbar_border_layer1,
- . Controlbar_border_content {
- Background: # e9e9e9;
- Height: 1px;
- Overflow: hidden;
- }
- . Controlbar_border_layer3 {
- Margin: 0 3px;
- }
- . Controlbar_border_layer2 {
- Margin: 0 2px;
- }
- . Controlbar_border_layer1 {
- Margin: 0 1px;
- }
- . Controlbar_border_content {
- Height: 20px;
- Padding: 0 1em;
- Line-Height: 20px;
- Vertical-align: middle;
- }
- /* Only for better appearance, not necessary, http://wallimn.iteye.com */
- . Controlbar_border_layer1,... controlbar_border_layer2 {
- Border-color: # f2f2f2;
- }
- </Style>
- </Head>
- <Body>
- <Div style = "width: 260px;">
- <B class = "round_border">
- <B class = "round_border_layer3"> </B>
- <B class = "round_border_layer2"> </B>
- <B class = "round_border_layer1"> </B>
- </B>
- <Div class = "round_border_content">
- <B class = "round_border">
- <B class = "controlbar_border_layer3"> </B>
- <B class = "controlbar_border_layer2"> </B>
- <B class = "controlbar_border_layer1"> </B>
- </B>
- <Div class = "controlbar_border_content">
- CSS next door
- </Div>
- <B class = "round_border">
- <B class = "controlbar_border_layer1"> </B>
- <B class = "controlbar_border_layer2"> </B>
- <B class = "controlbar_border_layer3"> </B>
- </B>
- </Div>
- <B class = "round_border">
- <B class = "round_border_layer1"> </B>
- <B class = "round_border_layer2"> </B>
- <B class = "round_border_layer3"> </B>
- </B>
- </Div>
- </Body>
- </Html>
Effect (edit and debug the browser IE7 ):