头部和尾部固定中间自适应的布局
2014-09-25 09:43
288 查看
<!doctype html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>Document</title> </head> <body> <div class="con"> <div class="top"></div> <div class="md"> ssssdfs </div> <div class="bottom"></div> </div> <style> *{margin:0; padding:0;} html,body,.con{height:100%;width:100%;height:100%;width:100%;} div{position:absolute;} .top,.bottom{width:100%;height:100px;z-index:5;} .top{background:red;top:0;} .bottom{background:black;bottom:0;} .md{ width:100%; background:#a7fad7; overflow:auto; top:100px; bottom:100px; position:absolute; _height:100%; _padding:100px 0; _top:0; } </style> </body> </html>
相关链接:
http://www.cnblogs.com/ckmouse/archive/2012/02/14/2351043.html http://www.cnblogs.com/bydclouds/archive/2014/09/24/3991571.html
相关文章推荐
- CSS-两侧固定宽度,中间自适应的三列布局
- css 左右固定,中间自适应的布局
- CSS——实现两侧固定中间自适应的布局(PC)
- css头部和尾部固定,中间可以动态
- 中间固定,两边自适应的三列布局、两边固定,中间自适应的三列布局、左侧栏固定,右侧自适应的两列布局
- 自适应布局,完美解决左右两边固定大小,中间内容适应大小。
- 从简单的左右列固定、中间列自适应的三列布局看布局设计技巧以及margin负值使用
- css布局两边固定中间自适应的四种方法
- 三种实现左右固定,中间自适应的三栏布局方式
- 顶部和底部固定中间自适应的布局
- CSS实现自适应高度布局:头部底部固定,中间自适应铺满屏幕剩余高度,中间盒子里左盒子固定右盒子自适应宽度
- 如何实现两边固定,中间自适应的三栏布局?
- 上下固定中间自适应的div布局
- Flex布局实现圣杯布局,左右两列固定、中间列自适应的三列式布局
- [CSS布局]3列布局:左右两列固定宽度、中间列自适应满宽
- 两侧固定中间自适应三栏布局
- 左右固定宽度,中间自适应的三列布局
- css三列布局--两边固定中间自适应和中间固定两边自适应
- table头部、尾部固定;中间内容定高自适应滚动
- CSS 布局实例系列(三)如何实现一个左右宽度固定,中间自适应的三列布局——也聊聊双飞翼