纯CSS实现三列DIV等高布局
2014-03-19 10:04
701 查看
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> * { margin: 0; padding: 0; } #wrap { overflow: hidden; width: 1000px; margin: 0 auto; } #left, #center, #right { margin-bottom: -10000px; padding-bottom: 10000px; } #left { float: left; width: 250px; background: #00FFFF; } #center { float: left; width: 500px; background: #FF0000; } #right { float: right; width: 250px; background: #00FF00; } </style> </head> <body> <div id="wrap"> <div id="left"> <p> left</p> <p> left</p> <p> left</p> <p> left</p> <p> left</p> </div> <div id="center"> <p> center</p> <p> center</p> <p> center</p> <p> center</p> <p> center</p> <p> center</p> <p> center</p> <p> center</p> <p> center</p> </div> <div id="right"> <p> right</p> <p> right</p> <p> right</p> </div> </div> </body> </html>
相关文章推荐
- CSS实现三列DIV等高布局
- 分享用纯CSS实现三列DIV等高布局的方法
- 纯CSS实现三列DIV等高布局
- 用纯CSS实现三列DIV等高布局的方法
- 用CSS实现三列DIV等高布局以传达更好的视觉效果
- 用CSS实现三列DIV等高布局
- 纯css实现div三列等高布局的最简单方法简化版/也可以多列
- 纯CSS实现三列DIV等高布局
- 探索CSS实现三行三列等高布局
- 如何利用CSS+DIV 实现三列自适应高和宽的布局(不用javascript)
- css实现等高布局 两栏自适应布局 三栏自适应布局
- css实现三列浮动流式布局
- CSS在页面布局中实现div垂直居中的方法总结(转)
- HTML CSS + DIV实现整体布局
- 以div代替frameset,用css实现仿框架布局
- 三列等高CSS布局的一个实例
- CSS实例:CSS实现的等高网页布局
- HTML,使用div+css实现自适应table布局
- css+div实现简单布局
- 纯CSS实现三列布局(两边固定,中间自适应)