flex宽度失效

.flex { flex-shrink: 0; }

April 16, 2020 · 1 min · zakudriver

文字超出显示省略号

// 文字超出省略号 .text-overflow { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } // 文字超出两行省略号, block元素 .text-overflow-2 { word-break: break-all; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }

March 4, 2020 · 1 min · zakudriver