父级div高固定 子级两个div上下 上边div高固定 下边自适应
2016-12-01 10:36
204 查看
<div class= "container"> <div class="left"></div> <div class="right"></div> </div> <style> .container{ position: relative; width: 200px; height: 600px; border: 1px solid red; } .left{ width:100%; height:200px; background: gray; } .right{ position: absolute; width: 100%; top: 200px; bottom: 0; left: 0; background: green; } </style>
相关文章推荐
- div左边固定、右边自适应 和 上边固定、下边自适应
- (div+css)上下固定中间自适应高度网页布局的实现(FF,IE)
- 两个div并排 左边div宽固定 右边自适应
- 和3个div在一行,前两个固定宽度,最后一个自适应问题
- 解决子级用css float浮动 而父级div没高度不能自适应高度
- 解决子级用css float浮动 而父级div没高度不能自适应高度
- 解决子级对象使用css float浮动 而父级div不能自适应高度,不能被父级内容撑开解决方法,父级div没有高度解决方法
- 解决子级用css float浮动 而父级div没高度不能自适应高度
- css三列布局,左边两个div固定,最右边宽度自适应
- flex 上下div固定, 中间div自适应
- 两个div标签,控制标签左边固定,右边自适应(滴滴面试题)
- 解决子级用css float浮动 而父级div没高度不能自适应高度
- 两个div并排 左边div宽固定 右边自适应
- 子级用css float浮动 而父级div没高度不能自适应高度
- (div+css)上下固定中间自适应高度网页布局的实现(FF,IE)
- 实现两个div,左边固定div宽度200px,右边div自适应
- 解决子级用css float浮动 而父级div没高度不能自适应高度
- 两个div并排 左边div宽固定 右边自适应(转载)
- 上下两个div, 一个固定高度, 另一个铺满屏幕
- 解决子级用css float浮动 而父级div没高度不能自适应高度