文本属性 (Text Properties) text-indent text-overflow vertical-align text-align layout-flow writing-mode direction unicode-bidi word-break line-break white-space word-wrap text-autospace text-kashida-space text-justify ruby-align ruby-position ruby-overhang ime-mode layout-grid layout-grid-char layout-grid-char-spacing layout-grid-line layout-grid-mode layout-grid-type text-indent 说明: 检索或设置对象中的文本的缩进
默认值为 0
在被另一个对象(如 br )断开的对象内不能应用本属性
此属性对于 currentStyle 对象而言是只读的
对于其他对象而言是可读写的
对应的脚本特性为 textIndent
语法: text-indent : length 取值: length : 百分比数字 | 由浮点数字和单位标识符组成的长度值,允许为负值
请参阅 长度单位 示例: DIV { text-indent:2cm }
click1 { text-indent:50% }
click2 { text-indent: } text-overflow 说明: 设置或检索是否使用一个省略标记(
)标示对象内文本的溢出
这个属性仅仅作用于水平内联方向的,普通的西方文本的溢出
内联溢出发生在行内的文本超出可用宽度却没有换行机会的时候
要强制溢出发生并且应用 ellipsis 值,作者必须设置对象