Open distums opened 7 years ago
detail using-feature-queries-in-css
设有n个flex-item,每个flex-item的flex-basis,flex-grow,flex-shrink值分别为:bi,gi,si,(0<i<=n) 则总宽度为bw=b1+b2+...+bn,令当前window宽度为w,则宽度变化为offset=w-bw; 如果offset>0,则wi=bi+offset(gi+/(g1+g2+...+gn)), 如果offset<0,则wi=bi-|offset|(si/(s1+s2+...+sn))。
parse HTML
detail