w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM dirÊôÐÔ
The dir property sets or returns the text-direction for an element.
dirÊôÐÔ¿ÉÉèÖûò·µ»ØÄ³ÔªËØÎÄ×ֵķ½Ïò
object.dir=text-direction |
The following example shows two methods on how to get the text direction for the <body> element:
¾ÙÀýÖн«Õ½Ê¿Á½ÖÖ·½·¨À´µÃµ½<body>ÔªËØÖÐÎÄ×ֵķ½Ïò£º
<html> <script type="text/javascript"> </body> |
Output:
Êä³ö½á¹û£º
Text direction: rtl |
Return the text direction for the <body> element
·µ»Ø<body>ÔªËØÄÚÎÄ×ֵķ½·¨
ÆÀÂÛ (0)
All