如果您把光标移动到下面两个div 上,就能够看到全部文本。

这个div 使用"text-overflow:ellipsis" :

This is some long text that will not fit in thebox

这个div 使用"text-overflow:clip":

This is some long text that will not fit in the box