div 两列式布局

<html>
    <head> 
      <style>
       #div1{
      background-color:green;
      height:200px;

     float:left;

      width:200px;

    }
    #div2{
      background-color:silver;
      height:200px;
          }
     </style>
    </head>
  <body>
    <div id="div1">div1</div>
    <div id="div2">div2</div>
     </body>
</html>

posted @ 2015-04-23 13:24  wenyi1993  阅读(242)  评论(0编辑  收藏  举报