只要设置样式加这三行即可
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.name {
font-size: 14px;
color: #71757f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
只要设置样式加这三行即可
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.name {
font-size: 14px;
color: #71757f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}