以下给出样式,能够使文字限定显示两行,并且超出部分加省略号.
overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;