Generally, when reading the title of an article, when we encounter too many characters, the program intercepts a certain number of characters on the server side, and then adds... to capture the title length. In fact, we can also control it through CSS.
The actual column is as follows:
. Title
{
Width: 200px;
White-space: nowrap;
Word-break: Keep-all;
Overflow: hidden;
Text-overflow: ellipsis;
}
SPAN or Div references are available, for example:
<SPAN class = title> the title displayed on the client is too long. the unused part is omitted and the ellipsis is added. </span>
<Div class = title> the client solves the problem. The title is displayed too long. the unused part is omitted and the ellipsis is added. </div>
The above two examples show that after the PX width of the style definition is exceeded, the subsequent characters will be replaced.
The actual column is as follows:
. Title
{
Width: 200px;
White-space: nowrap;
Word-break: Keep-all;
Overflow: hidden;
Text-overflow: ellipsis;
}
SPAN or Div references are available, for example:
<SPAN class = title> the title displayed on the client is too long. the unused part is omitted and the ellipsis is added. </span>
<Div class = title> the client solves the problem. The title is displayed too long. the unused part is omitted and the ellipsis is added. </div>
The above two examples show that after the PX width of the style definition is exceeded, the subsequent characters will be replaced.