CSS中实现两个DIV左右并排摆放

时间:2024-03-07 07:32:03

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

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