css 省略号 ellipsis [html] view plain copy print ? <div>xxxxxxxx</div> <div>xxxxxxxx</div> 通过以下css,可以令div中的超长的字符变成省略号 [css] view plain copy print ? div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }