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

Материал из Web эксперт
Версия от 08:19, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"layout-grid-char" Example

    
<html>
<body>
<p id=myP>This is only a sample text.</p>
<button onclick="myP.style.layoutGridChar="30px"">
Set layoutGridChar to 30px</button>

<button onclick="myP.style.layoutGridChar="auto"">
Set layoutGridChar to auto</button>
</body>
</html>



"layout-grid-char" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<blockquote>                    <body>                        |
|                |<center>                        currentStyle                  |
|                |<dd>                            <dir>                         |
|                |<div>                           <dl>                          |
|                |<dt>                            <fieldset>                    |
|                |<form>                          <hn>                          |
|                |<hr>                            <li>                          |
|                |<listing>                       <marquee>                     |
|                |<menu>                          <ol>                          |
|                |<p>                             <pre>                         |
|                |runtimeStyle                    style                         |
|                |<table>                         <td>                          |
|                |<th>                            <tr>                          |
|                |<ul>                            <xmp>                         |
+----------------+--------------------------------------------------------------+



"layout-grid-char" Possible Values

Possible Values
none           The default
auto           The grid is set to the largest character
length         a floating-point number followed by
               a unit designator
percentage     percentage relative to the parent object



"layout-grid-char" Syntax and Note

Note:
Set the character size grid for rendering the text.
Syntax:
    
element { layout-grid-char: value }
elementID.style.layoutGridChar = "value"
document.all.elementID.style.layoutGridChar = "value"