1.当文字多时占一行
overflow: hidden;
text-overflow:ellipsis;
white-space:nowrap;
2.float的一种写法
.clearfix:before,.clearfix:after{ content: " "; display: table; } .clearfix:after{ clear: both; }
1.当文字多时占一行
overflow: hidden;
text-overflow:ellipsis;
white-space:nowrap;
2.float的一种写法
.clearfix:before,.clearfix:after{ content: " "; display: table; } .clearfix:after{ clear: both; }