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.