记一下永远背不下来的单行省略和多行省略代码
作者:互联网
单行省略:
white-space : nowrap; overflow : hidden; text-overflow: ellipsis;
多行省略:
overflow: hidden; max-height: 44px; text-overflow: ellipsis; -webkit-box-orient: vertical; word-break:break-word; /* autoprefixer: off */ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; /* autoprefixer: on */ (注释掉的部分是为了保证编译时这种旧代码不丢失)标签:box,省略,行省,text,单行,webkit,autoprefixer,overflow,orient 来源: https://www.cnblogs.com/nangras/p/12098597.html