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
Release: 2016-09-02 08:42:58
Original
1279 people have browsed it
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;
}
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template