css控制文字强制换行: span{ word-wrap: break-word; word-break: break-all; white-space: pre-wrap !important; } 盒子文字设置,文字不换行,超出部分显示省略号: div{ <