word-break

Summary

 word-break 指定怎样在单词内断行。

  • 初始值 normal
  • 适用元素 all elements
  • 可继承 yes
  • 适用媒体 visual
  • 计算值 as specified
  • 可动画
  • Canonical order the unique non-ambiguous order defined by the formal grammar

Syntax

Formal syntax: normal | break-all | keep-all
word-break: normal 
word-break: break-all 
word-break: keep-all

word-break: inherit

Value

normal
使用默认的断行规则。
break-all
对于non-CJK (Chinese/Japanese/Korean) 文本,可在单词任意字符间断行。
keep-all
CJK 文本不断行。 Non-CJK 文本表现同 normal

Examples

FIXME:

Specifications

Specification Status Comment
CSS Text Level 3 Working Draft  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 15.0 (15.0) 5.5 Not supported (Yes)
keep-all 未实现 (查看 WebKit bug 43917) 15.0 (15.0) 5.5 Not supported 未实现 (查看 WebKit bug 43917)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 18.0 15.0 (15.0) ? Not supported ?
keep-all 未实现 (查看 WebKit bug 43917) 未实现 (查看 WebKit bug 43917) 15.0 (15.0) ? Not supported 未实现 (查看 WebKit bug 43917)
  • IE8 introduced -ms-word-break as a synonym for word-break. Don't use the -ms- prefix.

See also

Document Tags and Contributors

Contributors to this page: yan, teoli
最后编辑者: teoli,