Single-line text and multi-line text overflow display ellipsis, multi-line text ellipsis

Source: Internet
Author: User

Single-line text and multi-line text overflow display ellipsis, multi-line text ellipsis
1. Single-Line text overflow: hidden; white-space: nowrap; // It is used to process the blank content in the element. Only text-overflow: ellipsis is displayed in one line; // If the width is exceeded, use the ellipsis (...) 2. multiple lines of text word-break: break-all;
Text-overflow: ellipsis;
Display:-webkit-box; // The object is displayed as a scaling box model.
-Webkit-box-orient: vertical; // sets or retrieves the arrangement of child elements of a telescopic box object-webkit-line-clamp: 3; // number of lines displayed
Overflow: hidden; // hide excess content

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.