清除浮动-清除清除固定
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了清除浮动-清除清除固定相关的知识,希望对你有一定的参考价值。
Add class "clear" to elements that contain floated elements and they will hold the height correctly
/* CLEAR FLOATS /* Add class "clear" to elements that contain floated elements and they will hold the height correctly /* updated: 01.10.2010 *******************************************************/ .clear:before, .clear:after { content: "."; display: block; height: 0; visibility: hidden; } .clear:after {clear: both;} .clear {zoom: 1;} /*******************************************************/
以上是关于清除浮动-清除清除固定的主要内容,如果未能解决你的问题,请参考以下文章