We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<div class="row"> <div class="div1">div1div</div> <div class="div2">div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2div2divaaaaaaaaza</div> <div class="div3">div3</div> </div>
.row { display: flex; justify-content: space-between; } .div1 { background-color: red; width: 100px; /* flex-basis: 100px; flex-grow: 0; flex-shrink: 0; */ } .div2 { background-color: green; /* word-break: break-all; */ } .div3 { background-color: blue; width: 100px; /* flex-basis: 100px; flex-shrink: 0; */ }
.div1 { flex-basis: 100px; flex-grow: 0; flex-shrink: 0; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如果用width指定flex-item的宽度,当其中一个的宽度不够的时候,会挤压相邻的两个flex-item,如下图所示
The text was updated successfully, but these errors were encountered: