.container{ overflow: hidden; } .con-left{ float: left; width: 200px; background-color: red; background:#d3daf8 ; position: relative; /*margin-bottom: -99999px; padding-bottom: 99999px;*/ /*这是两列高度对齐代码*/ } .con-right{ margin-left: 200px; position: relative; /*margin-bottom: -99999px; padding-bottom: 99999px;*/ }