Home > Web Front-end > HTML Tutorial > HTML displays ellipses beyond the text...implemented by text-overflow_HTML/Xhtml_web page production

HTML displays ellipses beyond the text...implemented by text-overflow_HTML/Xhtml_web page production

WBOY
Release: 2016-05-16 16:39:47
Original
1956 people have browsed it

You need to apply Css to the div or span at the same time:

Copy the code
The code is as follows:

text-overflow:ellipsis;
white-space:nowrap;
overflow:hidden;

can achieve the desired overflow text display ellipsis effect.
Of course, your page elements must set a fixed width, and they will not be displayed until the width is exceeded.
Related labels:
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