CSS Learning (13th)-Theory and Practice of text line breaks

Source: Internet
Author: User

CSS Learning (13th)-Theory and Practice of text line breaks
I. theory:
1. word-wrap is used to break words rather than broken characters
2. word-break:
A. break-all allows non-Chinese characters to be disconnected.
B. keep-all cannot be disconnected from Chinese characters.
2. white-space:
A. nowrap text forcibly does not wrap
B. pre display pre-defined text format
3. browser adaptation:
A. Using word-wrap: break-word declaration in ie ensures that all texts are properly displayed.
B. Use word-wrap: break-word and overflow: hidden in firefox.

Ii. Practice:

1.

 

  
I am a fool, good at eating all kinds of good things. My hope is: every meal can eat delicious food. If it's not good, you can try again later.
If there is any next meal, I will have a better meal. If not, I will keep it and try to have a better meal.

I am a fool, good at eating all kinds of good things. My hope is: every meal can eat delicious food. If it's not good, you can try again later.

If there is any next meal, I will have a better meal. If not, I will keep it and try to have a better meal.



 

 

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.