The World of Remnant

禁止换行和多行文本省略号

禁止换行:white-space: nowrap

和text-overflow: ellipsis配合也很常用

/* 多行文本省略号 */
overflow: hidden;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;