提示Plone中的标题换行符 [英] Hints for title line breaks in Plone

查看:111
本文介绍了提示Plone中的标题换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML是否支持(标题)换行符的任何提示?问题在于,页面标题或导航标题经常出现有趣的断行,因为它们恰好在当前HTML元素间距允许的位置发生断裂。当需要换行时,手动换行会给出更好的视觉效果。



换行提示应该是编辑自己可以输入到< input type = text> 字段。

解决方案

c $ c>& shy; (软连字符)实体和 < wbr> 标记(HTML5)。请注意,& shy; 会在换行符断开时创建连字符,而< wbr> 不会。

请参阅 http:// www。 quirksmode.org/oddsandends/wbr.html



编辑器可以使用& shy; 如果他喜欢破折号( - ),或者&#8203; ,如果他只喜欢一个分词符,就可以打破单词。


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.

解决方案

There's the &shy; (soft hyphen) entity and the <wbr> tag (HTML5) for word break marks. Notice that &shy; 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 &shy; for word breaking if he prefers a dash (-), or &#8203; if he prefers only a word break.

这篇关于提示Plone中的标题换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆