清除浮动的方法
来源:互联网 发布:ubuntu 安装 交换分区 编辑:程序博客网 时间:2024/05/01 02:35
<h3 style="margin: 0px; padding: 10px 0px; font-size: 14px; color: rgb(102, 102, 102);"></h3>
1)添加额外标签
<div class="warp" id="float1"> <h3>1)添加额外标签</h3> <div class="main left">.main{float:left;}</div> <div class="side left">.side{float:right;}</div> <div style="clear:both;"></div> </div>
2)使用 br标签和其自身的 html属性
<div class="warp" id="float2"> <h3>2)使用 br标签和其自身的 html属性</h3> <div class="main left">.main{float:left;}</div> <div class="side left">.side{float:right;}</div> <br clear="all" /> </div>
3)父元素设置 overflow:hidden
<div class="warp" id="float3" style="overflow:hidden; *zoom:1;"> <h3>3)父元素设置 overflow:hidden</h3> <div class="main left">.main{float:left;}</div> <div class="side left">.side{float:right;}</div> </div>
4)父元素设置display:table <div class="warp" id="float4" style="display:table;"> <h3>4)父元素设置display:table</h3> <div class="main left">.main{float:left;}</div> <div class="side left">.side{float:right;}</div> </div>
0 0
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 清除浮动的方法
- 去掉ExpandableListView的箭头图标
- Android设置RadioButton在文字的右边
- LoadRunner设置检查点的几种方法介绍
- BUPT Summer Journey #test7 E
- 64位Linux上编译32位软件
- 清除浮动的方法
- poj 1656 Counting Black
- mantle相关,待研究
- android setTag (int key, Object tag)抛出IllegalArgumentException的问题
- 习近平名字在党媒出现次数稍逊毛泽东
- hdu 1079 Calendar Game 博弈(组合游戏) sg函数
- MRTG—网络监控工具
- 自己动手写CPU之第五阶段(1)——流水线数据相关问题
- varchar PK text