.style{
width:100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
word-break: break-all;
}
如果给行内元素加,需要多加一个属性display:inline-block;设置成行内块才会生效
.style{
width:100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
word-break: break-all;
}
如果给行内元素加,需要多加一个属性display:inline-block;设置成行内块才会生效