单行文本溢出, 隐藏并显示 … .box{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } 多行文本溢出, 隐藏并显示 … .box{ display: -webkit-box; /* 指定行数*/ -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }