HTML CSS Reference/CSS Attributes and Javascript Style Properties/word break
Содержание
"word-break" Example
<source lang="html4strict">
<html> <body>
This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph. This is a sample paragraph.This is a sample paragraph. This is a sample paragraph. This is a sample paragraph.This is a sample paragraph. This is a sample paragraph.
<input type="button"
value="Set wordBreak property to break-all" onclick="myD.style.wordBreak="break-all"">
</body> </html>
</source>
"word-break" is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+
| Applied_To |<address>| | |<body>| | |currentStyle
| | |<dir> | | |
- | | |<fieldset> <form> | | |<hn>
| | |<legend>- | | |<listing> <marquee> | | |<menu>
| | |
| | |runtimeStyle style | | |
| | | | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>
"word-break" Possible Values
<source lang="html4strict"> Possible Values normal default; normal line breaks break-all normal for Asian text keep-all Allows line breaking for non-Asian text and does not allow line breaking for Asian text
</source>
"word-break" Syntax and Note
<source lang="html4strict"> Note: How to break lines. When working with a table, you must set the table-layout property to fixed. Syntax:
element { word-break: value } elementID.style.wordBreak = "value" document.all.elementID.style.wordBreak = "value"
</source>