热门
给元素加入以下样式:
white-space:nowrap;overflow:hidden; text-overflow:ellipsis;
此外,还要注意给元素加上宽度:
width:100px;