最终可以追溯到Firefox Nightly中的最新更改。长话短说,选择器
min-width:0上的设置
.column将使其按预期工作。
在这里可以找到更全面的答案。注意:
“基本上:弹性项目将拒绝收缩到其最小固有宽度以下,除非您在其上明确指定“最小宽度”或“宽度”或“最大宽度”。
工作解决方案:
.container { width: 300px; background: red;}.row { display: flex; flex-direction: row; flex-wrap: wrap;}.column { min-width: 0; flex-basis: 50%;}.column p { background: gold; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}<div > <div > <div > <p>Captain's Log, Stardate 9529.1: This is the final cruise of the starship Enterprise under my command. This ship and her history will shortly become the care of another crew. To them and their posterity will we commit our future. They will continue the voyages we have begun and journey to all the undiscovered countries boldly going where no man, where no one has gone before.</p> </div> <div > <p>Captain's Log, Stardate 9529.1: This is the final cruise of the starship Enterprise under my command. This ship and her history will shortly become the care of another crew. To them and their posterity will we commit our future. They will continue the voyages we have begun and journey to all the undiscovered countries boldly going where no man, where no one has gone before.</p> </div> </div></div>


