1 回答

TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超2個(gè)贊
這是一種使用單個(gè)grid和一點(diǎn)flexbox尋址較小區(qū)域的方法。
.grid-container {
display: grid;
grid-template-columns: 3fr 1fr 1fr;
}
.grid-container .item {
display: flex;
}
.right .item {
flex-direction: column;
}
.left .item {
margin-bottom: .5rem;
}
.item [type="text"] {
flex-grow: 1;
}
<div class="grid-container">
<div class="left">
<div class="item">
<button type="button">-</button>
<input type="text" value="feature">
</div>
<div class="item">
<button type="button">-</button>
<input type="text" value="feature">
</div>
<div class="item">
<button type="button">-</button>
<input type="text" value="feature">
</div>
<div class="item">
<button type="button">-</button>
<input type="text" value="feature">
</div>
<div class="item">
<button type="button">+</button>
<input type="text" value="feature">
</div>
</div>
<div class="center"></div>
<div class="right">
<div class="item">
<input type="date">
<button type="button">Borrow</button>
</div>
</div>
</div>
- 1 回答
- 0 關(guān)注
- 156 瀏覽
添加回答
舉報(bào)