1
フレックスボックスの行の2つのdivに50%(または実際に近い)の幅を取得しようとしていますが、コンテンツの幅が不均一になっているようです。Flexboxの不均一な間隔
私はここにplunkをしました:https://plnkr.co/edit/RXor5bOR2s0hpa0jqjb8
.input-group {
flex: 1 0 auto;
display: flex;
}
.input-group-row {
flex-direction: row;
}
.input-group-column {
flex-direction: column;
}
.input-group > label {
flex-grow: 1;
}
.input-group > label + * {
flex-grow: 2;
}
<div style="display: flex; align-items: stretch; flex: 1 0 100%;">
<div class="input-group input-group-row">
<label for="price">Purchase Price:</label>
</div>
<div class="input-group input-group-row">
<label for="dealDate">Date:</label><span>2016-02-25asdfasdf</span>
</div>
</div>