我发现有点怪怪的约word-wrap
仅适用于正常的css width
财产。
HTML:
<b>This is the example of word-wrap only using width property</b>
<p id="ONLYwidth">827938828ey823876te37257e5t328er6367r5erd663275e65r532r6s3624e5645376er563rdr753624e544341763r567r4e56r326r5632r65sr32dr32udr56r634r57rd63725</p>
<br/>
<b>This is the example of word-wrap without width property</b>
<p id="wordwrapWITHOUTWidth">827938828ey823876te37257e5t328er6367r5erd663275e65r532r6s3624e5645376er563rdr753624e544341763r567r4e56r326r5632r65sr32dr32udr56r634r57rd63725</p>
<br/>
<b>This is the example of word-wrap with width property</b>
<p id="wordwrapWITHWidth">827938828ey823876te37257e5t328er6367r5erd663275e65r532r6s3624e5645376er563rdr753624e544341763r567r4e56r326r5632r65sr32dr32udr56r634r57rd63725</p>
CSS:
#ONLYwidth{
width:200px;
}
#wordwrapWITHOUTWidth
{
word-wrap: break-word;
}
#wordwrapWITHWidth
{
width:200px;
word-wrap: break-word;
}
这里是我准备一个关于它的工作演示。 http://jsfiddle.net/Hss5g/2/
我知道它太晚了,但它可以帮助别人!
appeedly stackoverflow.com正在实施我所需要的。它从第二行继续。当我看着这个页面的源代码时,我看到了以下文本:width:660px; font-size:107%; margin-bottom:5px; margin-right:5px; 行高:130%; – tugberk