HTML CSS Reference/CSS Attributes and Javascript Style Properties/writing mode

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

"writing-mode" Example

   <source lang="html4strict">
   

<html> <body>

This is sample text.


<input type="button"

      value="Set writing Mode property to tb-rl" 
      onclick="myD.style.writingMode="tb-rl"">

<input type="button"

      value="Set writingMode property to lr-tb"
      onclick="myD.style.writingMode="lr-tb"">

</body> </html>


     </source>
   
  


"writing-mode" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> |

| |
|

| |<button> |

| |
|

| | currentStyle | | |<custom>

| | | |

| |<dir>
| | |
| | | <fieldset> | | | <form> | | |<hn>
|

| | <input> | | |<inputtype="button"> <input type="file"> | | |<input type="password"> <input type="reset"> | | |<input type="submit"> <input type="text"> | | | <isindex> | | | <label> |

| |<legend>
  • | | |<marquee> <menu> | | |
      <option> | | |

                               |
      |                |                                                       |
      |                |                          runtimeStyle                  |
      |                |                                                     |
      |                |                                                 |
      |                |                                              |
      |                |style                                                    |
      |                |                           <td>                          |
      |                |<textarea>                      <th>                          |
      |                |                                                       |
      |                |
        | +----------------+--------------------------------------------------------------+ </source>

        "writing-mode" Possible Values

        <source lang="html4strict"> Possible Values lr-tb default; left to right, top to bottom

        tb-rl Top to bottom, right to left; used in Asian writing


        </source>



        "writing-mode" Syntax and Note

        <source lang="html4strict"> Note: Controls text writing direction. Syntax:

        element { writing-mode: value } elementID.style.writingMode = "value" document.all.elementID.style.writingMode = "value"


        </source>