-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
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
【Q306】如何实现左右固定,中间自适应布局 #308
Labels
Comments
可以参考 【Q017】css 如何实现左侧固定300px,右侧自适应的布局 .container
.left
.main
.right .container {
display: flex;
}
.left {
flex-basis: 300px;
flex-shrink: 0;
}
.right {
flex-basis: 300px;
flex-shrink: 0;
}
.main {
flex-grow: 1;
} |
|
以前还要用圣杯和双飞翼,现在都直接 flex 了。 |
|
楼上应该去掉height |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: