html:
<span class="history">货已经发过去了货已经发过去了</span>
css:
/*多出的用省略号替代*/
.history{
display: inline-block;
120px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
html:
<span class="history">货已经发过去了货已经发过去了</span>
css:
/*多出的用省略号替代*/
.history{
display: inline-block;
120px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}