-webkit-line-clamp
You can limit the content of a block container to a specified number of lines. And after the number of lines is exceeded, "..." is displayed on the last line
.goods_name{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
color: #666;
}