Css单行省略号
.ellipsis {
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
Css多行省略号
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden; text-overflow: ellipsis;
Flex布局导致省略号无效
.content{display:flex}
.content .left{width:200rpx}
.content .right{flex: 1; min-width: 0;}
.content .right .title{
line-height: 38rpx;
height:38rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}免费教程
如果总是抱着“明天就做”的想法,那么今天的时间就浪费在空想上了。从今天开始行动,才是做成一件事最好的方法。抓紧时间行动起来,迎接新的挑战吧!
0
本文标签:
















5.00