Css中实现两个DIV左右并排摆放,且自动按比例伸缩
#Div 0 |
{ |
float : left ; background-color :Blue; width : 100% ; height : 180px ; |
} |
#Div 1 |
{ |
float : left ; background-color :Blue; width : 70% ; height : 180px ; |
} |
#Div 2 |
{ |
background-color : Green; width : 30% ; height : 180px ; float : right ; |
|
} |
转载于:https://www.cnblogs.com/may-374/archive/2013/05/27/3102241.html