Sets or retrieves the reading order of the object. dhtml语法 HTML | <ELEMENT DIR
= sDir... >
|
---|
Scripting | object.dir [ = sDir ] |
---|
DHTML可能的值 sDir | String that
specifies or receives one of the following values.ltr | Default. Content flows left to right. | rtl | Content flows right to left. |
|
The property is read/write.
The property has a default value of
ltr. 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 unless explicitly set, the dir property has no return value when accessed in script. the property does not affect alphanumeric characters in latin documents. these characters always render ltr. however, the property does affect punctuation characters in latin documents. for example, punctuation marks such as periods and question marks render to the left of a sentence when the dir property is set to rtl.
是否符合公共标准
This property is defined in
HTML 4.0 and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To |
A,
ACRONYM,
ADDRESS,
AREA,
B,
BDO,
BIG,
BLOCKQUOTE,
BODY,
BUTTON,
CAPTION,
CENTER,
CITE,
CODE,
COL,
COLGROUP,
CUSTOM,
DD,
DEL,
DFN,
DIR,
DIV,
DL,
DT,
EM,
EMBED,
FIELDSET,
FONT,
FORM,
hn,
HTML,
I,
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,
MAP,
MARQUEE,
MENU,
NOBR,
OBJECT,
OL,
OPTION,
P,
PLAINTEXT,
PRE,
Q,
RT,
RUBY,
S,
SAMP,
SELECT,
SMALL,
SPAN,
STRIKE,
STRONG,
SUB,
SUP,
TABLE,
TBODY,
TD,
TEXTAREA,
TFOOT,
TH,
THEAD,
TR,
TT,
U,
UL,
VAR,
XMP | |
更多语法参考 direction, HTML Character Sets
|