[EN] Flexbox中flex:1代表什么?

Gelöst Von yujian999 2026-09-06 09:31 Aufrufe 3403
[EN] Flexbox中flex:1代表什么?

Antworten

Insgesamt 2 Antworten
Beste Antwort
yujian47000
yujian47000 · 2026-08-11 12:31
flex:1等于flex:1 1 0%,等分剩余空间。
yujian47
yujian47 · 2026-03-28 22:31
position:sticky在滚动到指定位置前是static,到达后变为fixed。需设置top。

Antworten

forum_login_to_reply_hint

Anmelden zum Antworten