如何终止DIV的float属性简单实现
内容摘要
终止 DIV 的 float 属性,在 css 里面定义一个样式
复制代码代码如下:
.clear_float {
clear: both;
}
页面使用时加上一行 <div class="clear_float"></div> 后面的 d
复制代码代码如下:
.clear_float {
clear: both;
}
页面使用时加上一行 <div class="clear_float"></div> 后面的 d
文章正文
终止 DIV 的 float 属性,在 css 里面定义一个样式
.clear_float {
clear: both;
}
页面使用时加上一行 <div class="clear_float"></div> 后面的 div 将不再 float。
复制代码
代码如下:.clear_float {
clear: both;
}
页面使用时加上一行 <div class="clear_float"></div> 后面的 div 将不再 float。
代码注释