Using a no-break space (U+00A0) instead a normal space you can mostly prevent a line break in a specific location where you wish to have some space. (I wrote “mostly”, because browsers do not quite consistently implement no-break space semantics.) But doing so in Chinese text will just make browsers break lines between Chinese characters in positions where no space is used—on modern browsers.
Modern browsers generally implement part of Unicode line breaking rules, which define that line breaks are generally allowed between Chinese characters, unless prevented by specific rules.
如果希望在案文的某一部分内防止all细线断裂,那么最有效的方法是打上标签<nobr>
和</nobr>
。 如果你将符合标准,以某些功能损失的成本计算,使该部分成为一种要素,如<代码>span,并分配<代码>white-space: nowrap<>/code>至CSS。 如果您愿意允许在这种部分的具体职位上打分界线,则使用(冒犯)标签<wbr>
或U+200B特性(例如,可通过写作​
)。
More info: http://www.cs.tut.fi/~jkorpela/html/nobr.html