HTML CSS Reference/CSS Attributes and Javascript Style Properties/layout grid mode

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

"layout-grid-mode" Example

   <source lang="html4strict">
   

<html> <body> This is only a sample text.
This is only a sample text. <button onclick="myS.style.layoutGridMode="line""> Set layoutGridMode to line </button>

<button onclick="myS.style.layoutGridMode="char""> Set layoutGridMode to char </button> </body> </html>


     </source>
   
  


"layout-grid-mode" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | | <base> | | |<basefont> |

| |
|

| |<body> <button> |

| |
|

| | | | |<col> <colgroup> | | |currentStyle <custom> | | |

defaults | | | |

| |<dir>
| | |
| | | <embed> | | |<fieldset> | | |<form> <frame> | | |<frameset> <head> | | |<hn>
|

| | <iframe> | | |<img> <input type="button"> | | |<input type="checkbox"> <input type="file"> | | |<input type="image"> <input type="password"> | | |<inputtype="radio"> <input type="reset"> | | |<input type="submit"> <input type="text"> | | | | | |<label> <legend> |

| |
  • <listing> | | |<marquee> <menu> | | |<meta> nextID | | |<nobr> <object> | | |
      <option> | | |

                               |
      |                |                                                       |
      |                |                          runtimeStyle                  |
      |                |                                                     |
      |                |<script>                        <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |style                                                    |
      |                |                                                  |
      |                |<tbody>                                                   |
      |                |                             
        | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "layout-grid-mode" Possible Values

        <source lang="html4strict"> Possible Values both the default none line char.

        </source>



        "layout-grid-mode" Syntax and Note

        <source lang="html4strict"> Note: Enable the character and line grid modes or not. Syntax:

        element { layout-grid-mode: value } elementID.style.layoutGridMode = "value" document.all.elementID.style.layoutGridMode = "value"


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |