<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div{
width: 600px;
}
p{
font-size: 14px;
font-weight: 700;
color: #222;
line-height: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
</style>
</head>
<body>
<div>
<p>希望现在的你,别害怕现状,也别试图强迫自己。世事无常,总要有一段日子是用来浪费的,总会有无能为力的不愉快,让你短暂停留,让你在今后闪闪发亮的时候,能感谢这些糟糕的日子。糟糕的日子往往有特别的价值,但前提是:你要挺过去,你要让所有的糟糕都变得值得</p>
</div>
</body>
</html>
效果图

超出两行…
word-break:break-all;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
超出两行并设置英文自动换超出部分…展示
display:-webkit-box;
word-wrap:break-word;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;