HTML CSS Reference/CSS Attributes and Javascript Style Properties/line break
Содержание
"line-break" Example
<html>
<body>
<p id="myP">Long long long long long long long Long long
long long long long long Long long long long long long long </p>
<input type="button"
value="Set lineBreak to strict"
onclick="myP.style.lineBreak="strict"">
<input type="button"
value="Set lineBreak to normal"
onclick="myP.style.lineBreak="normal"">
</body>
</html>
"line-break" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<address> <blockquote> |
| |<body> <center> |
| |currentStyle <dd> |
| |<dir> <div> |
| |<dl> <dt> |
| |<fieldset> <form> |
| |<hn> <hr> |
| |<legend> <li> |
| |<listing> <marquee> |
| |<menu> <ol> |
| |<p> <pre> |
| |runtimeStyle style |
| |<table> <td> |
| |<th> <tr> |
| |<ul> <xmp> |
+----------------+--------------------------------------------------------------+
"line-break" Possible Values
Possible Values
normal the default
strict more strictly Japanese line-breaking rules
"line-break" Syntax and Note
Note:
Controls line-breaking rules for Japanese language characters.
Syntax:
element { line-break: value }
elementID.style.lineBreak = "value"
document.all.elementID.style.lineBreak = "value"