[Distinct] Word-break: Break-all and word-wrap: Break-word

Source: Internet
Author: User

from: http://wayfoon.iteye.com/blog/182041

word-break: Break-all and word-wrap: break-word can automatically wrap the content of its container such as Div.
their differences are:
1. Word-break: Break-all, for example, div width: 200px, its content will be automatically wrapped at PX. If there is a long English word (congratulation, etc.) at the end of the line, it will cut off the word, the end of the row is CONRA (front-end part of congratulation), and the next row is the back-end part of tulation (conguatulation.
2. The word-wrap: Break-word example is the same as above, however, the difference is that it regards the entire congratulation word as a whole. If the end width of the row is not enough to display the entire word, it will automatically put the entire word in the next row without truncating the word.

word-break; break-all supports version: ie5 and above are the same as normal in Asian languages. It also allows non-Asian text lines to be broken in any word. This value is suitable for Asian texts that contain non-Asian texts.
word-wrap: Break-word supported versions: ie5.5 and above will be wrapped in a line break within the boundary. If necessary, the line feed (Word-break) also occurs.

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.