flex-grow、flex-shrink、flex-basis 的简写,控制子项如何分配空间。
<div class="f"><i class="f1">1</i><i class="f2">2</i><i class="f3">3</i></div>.f { display: flex; gap: 6px; width: 100%; }
.f i { height: 54px; border-radius: 8px; display: grid; place-items: center; color: #fff; font: 600 11px/1 ui-monospace, monospace; font-style: normal; }
.f1 { flex: 1; background: #2b57ff; }
.f2 { flex: 2; background: #7a4bff; }
.f3 { flex: 0 0 60px; background: #0d1117; }