Text overflow hidden. Hidden question words are expressed by ellipsis, overflow ellipsis

Source: Internet
Author: User
Tags lenovo

Text overflow hidden. Hidden question words are expressed by ellipsis, overflow ellipsis

Previously, when writing a page, we used a single line of text overflow to hide it. Today, we have encountered multiple lines of text overflow to hide it. The overflow part uses ellipsis. I sorted out some materials and shared them with you.

  Overflow and hiding of Single Line Text

  For single-line text overflow and hiding, text-overflow: ellipsis can solve the problem perfectly. However, when using it, you must combine overflow: hidden and white-space: nowrap ;, sometimes I forget to write it, which leads to poor performance and keeps me searching for a long time.

1 <! DOCTYPE html> 2 

Effect:

    

Overflow and hiding of multi-line text

   I use pseudo-class labels.

 

1 <! DOCTYPE html> 2 

Effect:

 

Do you have a better way to share it with me!

 

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.