当前位置: 代码迷 >> HTML/CSS >> Css中兑现两个DIV左右并排摆放,且自动按比例伸缩(示例)
  详细解决方案

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

热度:31   发布时间:2012-12-19 14:13:14.0
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;
         
        }

  相关解决方案