一、超出1行显示省略号… 设置宽度/最大宽度 width: 100%; / max-width: 100%; 核心代码 overflow: hidden; // 超出范围不显示 white-space: nowrap; // 超出不换行 text-overflow