多行、单行溢出省略, 加载时与空数据的css

105 阅读1分钟

.ellipsis { // line-height: 1rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-break: break-all; }

.ellipsis-lines { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; /设置对齐模式/ -webkit-line-clamp: 2 }

.loading, .empty { position: absolute; display: flex; height: 85%; width: 96%; align-items: center; justify-content: center; }