layout-grid-line Attribute | layoutGridLine参数属性
| DHTML文档教程 |
Sets or retrieves the gridline value used for rendering the text content of an element.
dhtml语法
HTML |
{ layout-grid-line : sLineSpace }
|
---|
Scripting | object.style.layoutGridLine [ = sLineSpace ] |
---|
DHTML可能的值
sLineSpace | Variant that
specifies or receives one of the following values.none | Default. No grid line is set. | auto | Largest character in the font of the element is used to set the character grid. | length | Floating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For more information about the supported length units, see css length units reference. | percentage | Integer, followed by a percent sign (%). The value is a percentage derived from the dimensions of the parent object. |
|
The property is read/write
for all objects except the following, for which it is read-only:
currentStyle.
The property has a default value of
none. The Cascading Style Sheets (CSS) attribute is
not inherited.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
remarks
the visual effects of the layout-grid-line attribute are similar to the lineheight property.
web documents in asian languages, such as chinese or japanese, usually create a page layout for characters using a one- or two-dimensional grid. you can use the layout-grid attribute to incorporate this layout into web documents.
the layout-grid-line attribute applies only to block-level elements.
Note For this property to have an effect, the
layout-grid-mode attribute must be set to
line or
both.
DHTML代码范例
This example uses the layout-grid-line attribute to specify character layout for a block of text.
<STYLE>
DIV.layout { layout-grid-line: auto }
</STYLE>
<DIV CLASS = "layout">
This is a block element containing a sentence of sample text.
</DIV>
是否符合公共标准
This property is part of a proposed addition to
Cascading Style Sheets (CSS) .
Applies To
|
BLOCKQUOTE,
BODY,
CENTER,
currentStyle,
DD,
DIR,
DIV,
DL,
DT,
FIELDSET,
FORM,
hn,
HR,
LI,
LISTING,
MARQUEE,
MENU,
OL,
P,
PLAINTEXT,
PRE,
runtimeStyle,
style,
TABLE,
TD,
TH,
TR,
UL,
XMP |
|