word-wrap��word-break������(���� IE �� FF&
�����о��˼��� IE �� FF �Ļ��� CSS �Ƽ���ʽ����ϸ������word-wrap��word-break��������
���� IE �� FF �Ļ��� CSS �Ƽ���ʽ ���õķ�ʽ��
word-wrap:break-word; overflow:hidden;
������
word-wrap:break-word; word-break:break-all;
Ҳ����
word-wrap:break-word; overflow:auto;
�� IE ��û���κ����⣬�� FF �£�����Ӣ�Ļᱻ��ס���������ݡ�
word-wrapͬword-break������
word-wrap:
normal Default. Content exceeds the boundaries of its container.
break-word Content wraps to next line, and a word-break occurs when necessary. ��Ҫʱ�ᴥ��word-break��
word-break:
normal Default. Allows line breaking within words. ������ֻ��Asian text�����á�
break-all Behaves the same as normal for Asian text, yet allows the line to break arbitrarily for non-Asian text. This value is suited to Asian text that contains some excerpts of non-Asian text.
keep-all Does not allow word breaking for Chinese, Japanese, and Korean. Functions the same way as normal for all non-Asian languages. This value is optimized for text that includes small amounts of Chinese, Japanese, or Korean.
�ܽ����£�
word-wrap�ǿ��ƻ��еġ�
ʹ��break-wordʱ���ǽ�ǿ�ƻ��С�����û���κ����⣬Ӣ������Ҳû���⡣���Ƕ��ڳ�����Ӣ�ģ��Ͳ������á�
break-word�ǿ����Ƿ��ϴʵġ�
normal��Ĭ��������Ӣ�ĵ��ʲ�����
break-all���ǶϿ����ʡ��ڵ��ʵ��߽�ʱ���¸���ĸ�Զ�����һ�С���Ҫ�����˳���Ӣ�ĵ����⡣
keep-all����ָChinese, Japanese, and Korean���ϴʡ���ֻ�ô�ʱ������word-wrap�����ľͲ��ỻ���ˡ���Ӣ����������������
ie�£�
ʹ��word-wrap:break-word;���еĶ�������
ff�£�
����2�������õĻ������IJ������κ����⡣Ӣ������Ҳ���������⡣���ǣ�����Ӣ�Ļ������⡣
Ϊ�˽�������Ӣ�ģ�һ����word-wrap:break-word;word-break:break-all;�����ǣ��˷�ʽ�ᵼ�£���ͨ��Ӣ�������еĵ��ʻᱻ�Ͽ���ie��Ҳ�ǣ���Ŀǰ��Ҫ������������ ����Ӣ�� �� Ӣ�ĵ��ʱ��Ͽ�����ʵ����Ӣ�ľ���һ���Ƚϳ��ĵ��ʶ��ѡ�
��Ӣ�ĵ���Ӧ��Ӧ�ñ��Ͽ��ǣ��������������ˣ���Ȼ��Ӧ�ñ��Ͽ��ˡ�
���ڳ���Ӣ�ģ����Ƕ����Ķ�������Ȼ����ȥ���ˡ����ǣ�ҲҪ��Щ�취���������������Ŵ���
�ã�overflow:auto; ie�£��������Զ����С�ff�£������ᱻ�ڸǡ�
���ԣ����ϣ����õķ�ʽ��word-wrap:break-word;overflow:hidden;������word-wrap:break-word;word-break:break-all;��
word-wrap:break-word;overflow:auto;��ie��û���κ����⡣��ff�£������ᱻ��ס�������ݡ�
�������Դ������£�
1.htm============
<style>
.c1{ width:300px; border:1px solid red}
.c2{ width:300px;word-wrap:break-word; border:1px solid yellow}
.c3{ width:300px;word-wrap:break-word;word-break:break-all; border:1px solid green}
.c4{ width:300px;word-wrap:break-word;word-break:keep-all; border:1px solid blue}
.c5{ width:300px;word-break:break-all; border:1px solid black}
.c6{ width:300px;word-break:keep-all; border:1px solid red}
.c7{ width:300px;word-wrap:break-word;overflow:auto; border:1px solid yellow}
</style>
.c1{ width:300px; border:1px solid red}
<div class="c1">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c1>
This is all English. This is all English. This is all English.
</div>
<div class=c1>
ȫ�����ĵ�������ȫ�����ĵ�������ȫ�����ĵ�������
</div>
<div class=c1>
��Ӣ�Ļ��ŵ�������Chinese and English. ��Ӣ�Ļ��ŵ�������Chinese and English.
</div>
<br>
.c2{ width:300px;word-wrap:break-word; border:1px solid yellow}
<div class="c2">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c2>
This is all English. This is all English. This is all English.
</div>
<div class=c2>
ȫ�����ĵ�������ȫ�����ĵ�������ȫ�����ĵ�������
</div>
<div class=c2>
��Ӣ�Ļ��ŵ�������Chinese and English. ��Ӣ�Ļ��ŵ�������Chinese and English.
</div>
<br>
.c3{ width:300px;word-wrap:break-word;word-break:break-all; border:1px solid green}
<div class="c3">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c3>
This is all English. This is all English. This is all English.
</div>
<div class=c3>
ȫ�����ĵ�������ȫ�����ĵ�������ȫ�����ĵ�������
</div>
<div class=c3>
��Ӣ�Ļ��ŵ�������Chinese and English. ��Ӣ�Ļ��ŵ�������Chinese and English.
</div>
<br>
.c4{ width:300px;word-wrap:break-word;word-break:keep-all; border:1px solid blue}
<div class="c4">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c4>
This is all English. This is all English. This is all English.
</div>
<div class=c4>
ȫ�����ĵ�������ȫ�����ĵ�������ȫ�����ĵ�������
</div>
<div class=c4>
��Ӣ�Ļ��ŵ�������Chinese and English. ��Ӣ�Ļ��ŵ�������Chinese and English.
</div>
<br>
.c5{ width:300px;word-break:break-all; border:1px solid black}
<div class="c5">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c5>
This is all English. This is all English. This is all English.
</div>
<div class=c5>
ȫ�����ĵ�������ȫ�����ĵ�������ȫ�����ĵ�������
</div>
<div class=c5>
��Ӣ�Ļ��ŵ�������Chinese and English. ��Ӣ�Ļ��ŵ�������Chinese and English.
</div>
<br>
.c6{ width:300px;word-break:keep-all; border:1px solid red}
<div class="c6">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c6>
This is all English. This is all English. This is all English.
</div>
<div class=c6>
ȫ�����ĵ�������ȫ�����ĵ�������ȫ�����ĵ�������
</div>
<div class=c6>
��Ӣ�Ļ��ŵ�������Chinese and English. ��Ӣ�Ļ��ŵ�������Chinese and English.
</div>
<br>
.c7{ width:300px;word-wrap:break-word;overflow:auto; border:1px solid yellow}
<div class="c7">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c7>
This is all English. This is all English. This is all English.
</div>
<div class=c7>
ȫ�����ĵ�������ȫ�����ĵ�������ȫ�����ĵ�������
</div>
<div class=c7>
��Ӣ�Ļ��ŵ�������Chinese and English. ��Ӣ�Ļ��ŵ�������Chinese and English.
</div>
- ת����ע����Դ��ITѧϰ�� ��ַ��http://www.t086.com/ �����������Ƽ�������
- �ر������� ��վ�������ر�������ֹת�ص�ר�������������¿�������ת�أ���������ע��������ԭʼ���ߡ����°�Ȩ������ԭʼ�������С����ڱ���վת�����µĸ��˺���վ�����DZ�ʾ������л�⡣������վת�ص������а�Ȩ��������ϵ���ǣ����ǻᾡ�����Ը�����