display: block; width:100px;/*对宽度的定义,根据情况修改*/ overflow: hidden; white-space: nowrap; text-overflow: ellipsis;