纯css实现div左右等高
<style> .row-wrap { overflow: hidden; } .row1, .row2 { margin-bottom: -1000px; padding-bottom: 1000px; } .row1 { width: 120px; background: #F2F2F2; float: left; } .row2 { width: 300px; background: #81C0F2; color: #FFF; float: left; _margin-right: -6px; } </style> <div class="row-wrap"> <div class="row1"> <p>内容1</p> </div> <div class="row2"> <p>内容2</p> </div> </div>

浙公网安备 33010602011771号