B.127. word-break

This nonstandard property, supported by Internet Explorer for Windows version 5 or later, lets you specify different word wrapping behavior for Chinese/Japanese/Korean (CJK) scripts than for other writing systems.

Inherited: Yes

B.127.1. Value

This property will accept any one of the following constant values:

  • break-all: allows both CJK and non-CJK words to be broken by word wrapping at any point; ideal for CJK text containing non-CJK fragments

  • keep-all: prevents both CJK and non-CJK words from being broken by word wrapping; ideal for non-CJK text containing CJK fragments

  • normal: allows CJK words to be broken by word wrapping at any point, but prevents non-CJK words from being broken in the same way

Initial value: normal

B.127.2. Compatibility

CSS Version: n/a

Internet Explorer 5 or later for Windows only.

Equivalent functionality is planned for inclusion in CSS3, but final property names and values are likely to differ. To follow the work on this front, see the CSS Working Group Web site.

B.127.3. Example

This style rule sets the entire document to prevent arbitrary breaking of words in CJK and non-CJK text, in anticipation of the document being primarily non-CJK:

body {
  word-break: keep-all;
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset