属性里加上overflow: hidden;即可,如下:
.clear {
clear: both;
height: 0px;
overflow: hidden;
}