HTML CSS Reference/CSS Attributes and Javascript Style Properties/line break

Материал из Web эксперт
Перейти к: навигация, поиск

"line-break" Example

   <source lang="html4strict">
   

<html> <body>

Long long long long long long long Long long long long long long long Long long long long long long long

<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>


     </source>
   
  


"line-break" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+

| Applied_To |<address>
| | |<body>
|

| |currentStyle

|

| |<dir>
| | |
| | |<fieldset> <form> | | |<hn>
| | |<legend>
  • | | |<listing> <marquee> | | |<menu>
      | | |

                               |
      |                |runtimeStyle                    style                         |
      |                |                          |
      |                |
        <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "line-break" Possible Values

        <source lang="html4strict"> Possible Values normal the default strict more strictly Japanese line-breaking rules


        </source>



        "line-break" Syntax and Note

        <source lang="html4strict"> Note: Controls line-breaking rules for Japanese language characters. Syntax:

        element { line-break: value } elementID.style.lineBreak = "value" document.all.elementID.style.lineBreak = "value"


        </source>
      | | |