日期:2014-05-17  浏览次数:20923 次

Css中实现两个DIV左右并排摆放,且自动按比例伸缩(示例)

Div0为最大的,Div1和Div2为左右分割的DIV

        #Div0
        {
          float:left; background-color:Blue; width:100%; height:180px;
        }

        #Div1
        {
          float:left; background-color:Blue; width:70%; height:180px;
        }
        #Div2
        {
           background-color: Green; width:30%;height:180px; float:right;
         
        }