.notes { border: 1rpx solid rgba(10, 10, 10, 0.14); border-radius: 16rpx; padding: 16rpx; margin-top: 16rpx; margin-bottom: 1rpx; word-break: break-all; } .notes>view>text { word-break: break-all } .notes-edit { min-height: 400rpx; padding: 32rpx; margin-bottom: 16rpx; } .parent-node { max-height: 200rpx; display: block; display: -webkit-box; /*关键属性(必须有的) */ -webkit-box-orient: vertical; /*规定子元素的排列方向 */ -webkit-line-clamp: 5; /*行数*/ /* 实现多余的文字隐藏并用省略号来代表被隐藏的文字 */ overflow: hidden; text-overflow: ellipsis; } .state { font-family: PingFangSC-Medium; margin-top: 16rpx; color: rgba(10, 10, 10) } .hide { max-height: max-content; text-overflow: unset; max-height: unset; -webkit-line-clamp: unset; }