App css代码 width: 100%; /*一定要设置宽度,或者元素内含的百分比*/ overflow:hidden; /*溢出的部分隐藏*/ white-space: nowrap; /*文本不换行*/ text-overflow:ellipsis;/*ellipsis:文本溢出显示省略号(...);clip:不显示省略标记(...),而是简单的裁切*/ 微信小程序 wxss代码 width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;