css 控制div字符串超出一定长度后不换行省略号展示 1. text-overflow 2. white-space text-overflow: ellipsis; //溢出用省略号显示 white-space: nowrap; //溢出不换行