小程序max-width解决单行多元素并排宽度随机
2018-10-10 本文已影响0人
泥歪sir
因为同一行需要并排多个元素,元素的宽度又是随内容的多少而变化的,
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;