V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
CoooolChan
V2EX  ›  问与答

flexbox 计算 flex item 总和超出容器宽度的官方公式是什么

  •  
  •   CoooolChan · Nov 26, 2014 · 2668 views
    This topic created in 4173 days ago, the information mentioned may be changed or developed.
    网上找了一圈没找到靠谱的,我在chrome上自己算了下,当设置flex-shrink>=1的时候,并且设置了flex-basis,要计算的一个flex item的宽度是它的flex-basis-(超出宽度)*(flex-shrink*flex-basis/容器下所有flex-item的flex-basis*flex-shrink的和),有官方简单易懂说明吗
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:16 · PVG 04:16 · LAX 13:16 · JFK 16:16
    ♥ Do have faith in what you're doing.