HTML CSS Reference/CSS Attributes and Javascript Style Properties/layout grid char
Содержание
"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"