text-align-last Attribute | textAlignLast参数属性
| DHTML文档教程 |
Sets or retrieves how to align the last line or only line of text in the object.
dhtml语法
HTML |
{ text-align-last : sAlignLast }
|
---|
Scripting | object.style.textAlignLast(v) [ = sAlignLast ] |
---|
DHTML可能的值
sAlignLast | String that
specifies or receives one of the following values.auto | Default. Text is aligned like the other lines in the object, using the value of the textalign property. | center | text is centered. | inherit | text is aligned like the text in the parent object. | justify | text is justified. | left | text is aligned to the left. | right | Text is aligned to the right. |
|
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
auto. The proposed 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
The property is read-only for the
currentstyle object.
the property applies to block elements.
DHTML代码范例
The following example shows an embedded style rule that justifies all the lines in the document's p elements. this is commonly found in east asian typography.
<STYLE>
P.DistributeAllLines { text-align: justify;
text-justify: distribute;
text-align-last: justify }
</STYLE>
是否符合公共标准
There is no public standard that applies to this property.
Applies To
|
ADDRESS,
BLOCKQUOTE,
BODY,
CENTER,
currentStyle,
CUSTOM,
DD,
DIV,
DL,
DT,
FIELDSET,
FORM,
hn,
HR,
ISINDEX,
LI,
LISTING,
MENU,
OL,
P,
PLAINTEXT,
PRE,
runtimeStyle,
style,
UL,
XMP |
|