V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
CoooolChan
V2EX  ›  问与答

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

  •  
  •   CoooolChan · 2014-11-26 02:01:25 +08:00 · 2369 次点击
    这是一个创建于 3456 天前的主题,其中的信息可能已经有所发展或是发生改变。
    网上找了一圈没找到靠谱的,我在chrome上自己算了下,当设置flex-shrink>=1的时候,并且设置了flex-basis,要计算的一个flex item的宽度是它的flex-basis-(超出宽度)*(flex-shrink*flex-basis/容器下所有flex-item的flex-basis*flex-shrink的和),有官方简单易懂说明吗
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1400 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:52 · PVG 07:52 · LAX 16:52 · JFK 19:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.