我想让显示字段 div 占据整个剩余宽度。现在显示字段宽度等于文本长度。怎么做?
.display-label {
float:left;
clear:left;
min-width:160px;
}
.display-field {
float:left;
clear:right;
}
<div class="display-label">Account Id</div>
<div class="display-field">30221</div>
<div class="display-label">Full Name</div>
<div class="display-field">Tomas</div>