问题
Does HTML support any kind of hinting for (title) line-breaks? The problem is that often page titles or navigational titles have funny line breaking, as they happen to break wherever the current HTML element spacing allows. Manual line-breaks would give much nicer visuals, when line-breaks are needed.
The line-break hints should be something the editor can himself/herself enter to an <input type=text>
field.
回答1:
There's the ­
(soft hyphen) entity and the <wbr> tag (HTML5) for word break marks. Notice that ­
will create a hyphen if the line breaks, while <wbr>
won't.
See also http://www.quirksmode.org/oddsandends/wbr.html.
So an editor could use ­
for word breaking if he prefers a dash (-), or ​
if he prefers only a word break.
来源:https://stackoverflow.com/questions/9276606/hints-for-title-line-breaks-in-plone