1、单行文本溢出显示省略号 给文本设置overflow:hidden;white-space:nowrap(强制不换行); text-overflow:ellipsis 2、多行文本溢出显示省略号 使用伪元素模拟省略号