CoooolChan
V2EX  ›  问与答

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

  •  
  •   CoooolChan · Nov 26, 2014 · 2937 views
    This topic created in 4378 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   ·   Privacy   ·   Solana   ·   918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 20:35 · PVG 04:35 · LAX 12:35 · JFK 15:35
    ♥ Do have faith in what you're doing.