当前位置:网站首页>Wechat applets will directly open the parent element when the child element of flex:1 is too long (the text is too long)

Wechat applets will directly open the parent element when the child element of flex:1 is too long (the text is too long)

2022-06-22 07:42:00 Huangbao ~

Need to put width Set to 0

 

.item{

height: 100%;

display: flex;

align-content: center;

align-items: center;

justify-content: center;

flex-direction: row;

flex: 1;

width: 0;

overflow: hidden;

white-space: nowrap;

text-overflow: ellipsis;

}

原网站

版权声明
本文为[Huangbao ~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202220534226359.html