layout-grid Attribute | layoutGrid参数属性
| DHTML文档教程 |
Sets or retrieves the composite document grid properties that specify the layout of text characters. dhtml语法 HTML |
{ layout-grid : sLayout }
|
---|
Scripting | object.style.layoutGrid [ = sLayout ] |
---|
DHTML可能的值 sLayout | String that
specifies or receives one or more of the following values:mode | Any of the range of mode values available to the layoutgridmode property. | type | any of the range of type values available to the layoutgridtype property. | line | any of the range of line values available to the layoutgridline property. | char | any of the range of character values available to the layoutGridChar property. |
|
The property is read/write.
The property has a default value of
both loose none none. The Cascading Style Sheets (CSS) attribute is
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 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.
DHTML代码范例
This example uses the layout-grid attribute to specify character layout for a block of text. <STYLE>
DIV.layout { layout-grid: both fixed 12px 12px }
</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 |
A,
ACRONYM,
ADDRESS,
APPLET,
B,
BASE,
BASEFONT,
BDO,
BIG,
BLOCKQUOTE,
BODY,
BUTTON,
CAPTION,
CENTER,
CITE,
CODE,
COL,
COLGROUP,
CUSTOM,
DD,
defaults,
DEL,
DFN,
DIR,
DIV,
DL,
DT,
EM,
EMBED,
FIELDSET,
FONT,
FORM,
FRAME,
FRAMESET,
HEAD,
hn,
HR,
I,
IFRAME,
IMG,
INPUT type=button,
INPUT type=checkbox,
INPUT type=file,
INPUT type=image,
INPUT type=password,
INPUT type=radio,
INPUT type=reset,
INPUT type=submit,
INPUT type=text,
INS,
KBD,
LABEL,
LEGEND,
LI,
LISTING,
MARQUEE,
MENU,
META,
nextID,
NOBR,
OBJECT,
OL,
OPTION,
P,
PLAINTEXT,
PRE,
Q,
RT,
RUBY,
runtimeStyle,
S,
SAMP,
SCRIPT,
SELECT,
SMALL,
SPAN,
STRIKE,
STRONG,
style,
SUB,
SUP,
TABLE,
TBODY,
TD,
TEXTAREA,
TFOOT,
TH,
THEAD,
TR,
TT,
U,
UL,
VAR,
XMP | |
|