Home >Web Front-end >HTML Tutorial >Ellipses appear in the extended part of the text

Ellipses appear in the extended part of the text

WBOY
WBOYOriginal
2016-09-02 08:42:581272browse
Only for single line
When you want ellipses to appear beyond the text:
Can be set:
white-space:nowrap;
text-overflow:ellipsis;
For example:

p{

width:200px;
border:1px solid #ccc;
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn