1.居中布局

left
right
right
1
2
3
4
1.table.parent-fix{margin-left:-20px;}.parent{显示:表格;宽度:100%;table-layout:fixed;}.child{display:table-cell;padding-left:20px;}2.flex.parent{display:flex;}.child{flex:1;}.child+.child{margin-left:20px;}四、等高布局left
右
右
1.table.parent{display:table;宽度:100%;table-layout:fixed;}.left,.right{display:table-cell;}.left{width:100px;border-right:20pxsolidtransparent;background-clip:padding-box;}2.flex.parent{display:flex;}.right{flex:1;}.left{width:100pX;margin-right:20px;}3.float//一些UI框架使用这种方法,.parent{overflow:hidden;}.left{float:left;margin-right:20px;}.right{overflow:hidden;}.left,.right{padding-bottom:9999px;底部边距:-9999px;}