用DIV如何排出一行三列的布局
2012-11-29 17:23
197 查看
我刚学DIV布局,如题, float:只有左和右属性, 不会是用这个实现一行三列的布局吧? |
#ma{ width:790px; }
#left{ width:240px; background-color:#FF0000; float:left;}
#center{ width:300px; background-color:#ffff00; float:left;}
#right{ width:250px; background-color:#000000; float:left;}
</style>
<body>
<div id="ma">
<div id="left">a</div>
<div id="center">b</div>
<div id="right">c</div>
</div>
</body>
相关文章推荐
- 如何用div+css布局页面
- 如何用div+css布局页面
- 如何让div左右布局
- 用DIV+CSS布局中,如何设置图片与文字在同一高度?
- 多个元素并排一行,div+css布局乱码,如何进行处理
- 如何用div+css布局页面-转
- HTML 布局 -和如何 使用<div>
- DIV布局如何正确的使用 id 和 class
- HTML中如何对DIV使用列布局(两列三列等)
- div使用margin:0 auto居中后,如何使子div实现流式布局
- 如何用div+css布局页面-转
- 如何设计页面布局,菜单和正式内容?使用div还是分部视图?
- 如何用div+css布局页面-转
- 使用PS切片工具进行切片生成div布局的页面的方法以及如何确定图片中某个点在图片中的位置
- 用div+css布局,控件排布乱了,如何解决
- H5如何实现一行三列布局
- 如何用div+css布局页面
- 如何利用CSS+DIV 实现三列自适应高和宽的布局(不用javascript)
- 子标签DIV使用浮动布局(float),父标签DIV如何自适应高度
- 如何让两个div并排布局?