父元素使用flex布局,子元素就不需要设置display:inlin-block .file-card-row{ overflow: hidden; display: flex; flex-direction: row; justify-content: start; } .file-card-row-title{ white-space: nowrap; } .file-card-row-con { color: rgba(0, 0, 0, 0.6500); margin-left: 10rpx; min-width: 200rpx; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
小程序文本溢出隐藏
猜你喜欢
转载自blog.csdn.net/qq_34907249/article/details/127225827
今日推荐
周排行