.cont {
width: 400px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
color: #eab53e;
float: left;
}
效果如下:
.cont {
width: 400px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
color: #eab53e;
float: left;
}
效果如下: