<p class="title">这里是很长很长的一句话</p>
.title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
<p class="title">这里是很长很长的一句话</p>
.title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}