If you want to have a container (div or Li or ... Block-level elements) display a line of text, when the text content is too large, do not wrap, but appear ..., you can use the Text-overflow:clip|ellipsis basic syntax: Text-overflow:clip | Ellipsis if the default value is Text-overflow:clip, the ellipsis (...) is not displayed, but the simple Cero is text-overflow:ellipsis the ellipsis (...) is displayed when the text inside the object overflows. For example:
<!doctype html>
Note: Overflow:hidden; Text-overflow:ellipsis;white-space:nowrap; Be sure to use it together.
1. Be sure to define a width for the container.
2. If the Overflow:hidden is missing, the text will stand laterally to the outside of the easy
3. If the white-space:nowrap is missing, the text will hold the height of the container down, even if you define the height, the ellipsis will not appear, the extra text will be cut off
4. If Text-overflow:ellipsis is missing, the extra text will be cut off, which is the equivalent of defining Text-overflow:clip.
The use of text-overflow:clip|ellipsis in CSS