react-layout-web 遍历children插入占位空div的方案有缺陷,就是在遍历时你是不知道这个child最终是不是返回了null,如果是null,你插入的占位div就多余了。这个问题无解。 css 变量加margin的方式,性能最好,但是只能web用并且影响子元素的margin Usage const reactText = require('react-layout-web'); // TODO: DEMONSTRATE API