用UL实现非Table四行三列布局

  • 来源: 互联网 作者: rocket   2008-03-19/09:08
  • 先看看效果:

    下面是源代码:

    <html>
    <head>
    <title>test</title>
    <style type="text/css">
    ul{
     margin:0px;
     padding:0px;
     width:200px;
     }
    ul li{
     float:left;
     list-style-type:none;
     border-top:#000 solid 1px;
                    border-left:#000 solid 1px;
     width:65px;
     }
    .border-r{
                   border-right:#000 solid 1px;
                    }
    .border-b{
                   border-bottom:#000 solid 1px;
                    }
    .border-l{
                   border-right:#000 solid 1px;
                   border-bottom:#000 solid 1px;
                    }
    </style>
    </head>
    <body>
    <ul>
     <li>&nbsp;</li>
     <li>&nbsp;</li>
     <li class="border-r">&nbsp;</li>
    </ul>
    <ul>
     <li>&nbsp;</li>
     <li>&nbsp;</li>
     <li class="border-r">&nbsp;</li>
    </ul>
    <ul>
     <li>&nbsp;</li>
     <li>&nbsp;</li>
     <li class="border-r">&nbsp;</li>
    </ul>
    <ul>
     <li class="border-b">&nbsp;</li>
     <li class="border-b">&nbsp;</li>
     <li class="border-l">&nbsp;</li>
    </ul>
    </body>
    </html>

    评论 {{userinfo.comments}}

    {{money}}

    {{question.question}}

    A {{question.A}}
    B {{question.B}}
    C {{question.C}}
    D {{question.D}}
    提交

    驱动号 更多