Sets or retrieves the alignment of the object relative to the display or table.
dhtml语法
HTML | <ELEMENT ALIGN
= sAlign... >
|
---|
Scripting | object.align [ = sAlign ] |
---|
DHTML可能的值
sAlign | String that
specifies or receives one of the following values.center | Aligns to the center. | justify | Aligns to the left and right edge. | left | Default. Aligns to the left edge. | right | Aligns to the right edge. |
|
The property is read/write.
The property has a default value of
left.
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 default value for the th element is center.
the justify possible value is available only for the div, hn, and p elements.
是否符合公共标准
This property is deprecated in
HTML and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
|
COL,
COLGROUP,
DIV,
hn,
HR,
P,
TBODY,
TD,
TFOOT,
TH,
THEAD,
TR |
|