div中元素float之后不能自动撑大,添加css样式 .clearfix:after { content: "."; display: block; height: 0; clear: both; overflow:hidden; visibility: hidden;}