CoooolChan
V2EX  ›  问与答

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

  •  
  •   CoooolChan · Nov 26, 2014 · 2714 views
    This topic created in 4203 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   ·   1026 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:21 · PVG 07:21 · LAX 16:21 · JFK 19:21
    ♥ Do have faith in what you're doing.