因为同一行需要并排多个元素,元素的宽度又是随内容的多少而变化的,
max-width: 220rpx;
height: 40rpx;
line-height: 40rpx;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
因为同一行需要并排多个元素,元素的宽度又是随内容的多少而变化的,
max-width: 220rpx;
height: 40rpx;
line-height: 40rpx;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
本文标题:小程序max-width解决单行多元素并排宽度随机
本文链接:https://www.haomeiwen.com/subject/yyuhoftx.html
网友评论