我發現有點怪怪的約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