div 画table尝试
.left { float: left; } .table { border: solid 1px black; width: 750px; } .tr { width: 100%; height: auto; } .td { float: left; min-height: 40px; line-height: 40px; padding: 5px; font-size: 14px; border-right: solid 1px black; } .td0 { float: left; min-height: 40px; line-height: 40px; font-size: 14px; padding: 5px; } .btop { border-top: solid 1px black; } .clear { clear: both; }
.left { float: left; } .table { border: solid 1px black; width: 750px; } .tr { width: 100%; height: auto; } .td { float: left; min-height: 40px; line-height: 40px; padding: 5px; font-size: 14px; border-right: solid 1px black; } .td0 { float: left; min-height: 40px; line-height: 40px; font-size: 14px; padding: 5px; } .btop { border-top: solid 1px black; } .clear { clear: both; }
<div class="table" style="margin-top: 10px;"> <div class="tr"> <div class="td w15">姓名</div> <div class="td w15"></div> <div class="td w15">性别</div> <div class="td w15"></div> <div class="td w15">出生年月</div> <div class="td0"></div> <div class="clear"></div> </div> <div class="tr btop"> <div class="td w15">备注</div> <div class="td0"></div> <div class="clear"></div> </div> </div>