uni字体强制换行 超出显示省略号

.monthItemName {
		// background-color: #f1dada;
		width: 215rpx;
		padding: 15rpx 0rpx 0rpx;
		letter-spacing: 4rpx;
		line-height: 40rpx;
		overflow: hidden;
		-webkit-line-clamp: 2;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		// display: inline-block;
		white-space: pre-wrap;
		word-wrap: break-word;
		height: auto;
	}

你可能感兴趣的:(javascript,开发语言,ecmascript)