截取字符串会多出几像素,可用浮动清除 .text-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} 可加float:left;