CSS controls excessive omission of text/automatic line feed of content

Source: Internet
Author: User

The CSS control text is omitted.

This property:Text-Overflow: Clip | ellipsis (default value: Clip)

Clip: it does not show the omitted mark (...), but simply crop it.

Ellipsis: when the object text overflows, the omission mark (...) is displayed (...)

It is worth noting that the object to use this property must have a width.

Certificate ---------------------------------------------------------------------------------------------------------------------------------------------

CSS controls automatic text wrapping in objects

This property:Word-wrap: Normal | break-word (default value: normal)

Normal: controls the line feed of continuous text.

Break-word: the content will wrap in the boundary. If necessary, the line feed (Word-break) also occurs.

Text wrap attribute in another objectWord-breakAndWord-wrap is different.(Good example address http://www.jb51.net/css/42578.html)

Compatible with wrap CSS of IE and ff. Recommended style: Word-wrap: Break-word; overflow: hidden;

No: Word-wrap: Break-word; Word-break: Break-all;

It is not: Word-wrap: Break-word; overflow: auto;

  

    

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.