上图为溢出情况,此情况均为 英文或数字,但亲测,中文也可正常换行。
添加 word-wrap: break-word; 后,正常换行。
若不希望换行,设为 white-space: nowrap; 即可 。