nic*_*ckf 85 html character line-breaks hyphenation
一个 字符是不允许换行的空间.
<p>lorem ipsum here are some words and so on</p>
| lorem ipsum |
| here are some words and so |
| on |
Run Code Online (Sandbox Code Playgroud)
与此相反的是什么?也就是说,一个字符不是作为空格呈现的,但可以用于换行.
<p>foo supercalifragilisticexpialidocious bar</p>
<!-- put char here ^ and here ^ -->
|foo supercalifragi |
|listicexpiali |
|docious bar |
or with wider size:
|foo supercalifragilisticexpiali |
|docious bar |
Run Code Online (Sandbox Code Playgroud)
我知道的软连字符,但我的目的,我专门做不希望在休息加连字符.
Ano*_*on. 95
你想要unicode字符ZERO-WIDTH SPACE(\ u200B).
您可以使用​或以HTML格式获取它​.
显式中断和非中断:
LB7:不要在空格或零宽度空间之前破坏.
LB8:在零宽度空间之后的任何字符之前中断,即使一个或多个空格介入.
http://unicode.org/reports/tr14/
fre*_*den 16
在quirksmode.org上有一个很好的页面可以很好地回答这个问题恕我直言.http://www.quirksmode.org/oddsandends/wbr.html
简而言之:使用<wbr />或 (或害羞;但你提到你不想要破折号).