欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML DOM direction 屬性

HTML DOM Style 對(duì)象參考手冊(cè)

定義和用法

direction 屬性設(shè)置元素的文本方向。

語(yǔ)法:

Object.style.direction=ltr|rtl|inherit

Possible Values

描述
ltr 默認(rèn)。內(nèi)容從左向右流動(dòng)。
rtl 內(nèi)容從右向左流動(dòng)。
inherit 內(nèi)容流動(dòng)從父元素繼承。

實(shí)例

本例把文本設(shè)置為從右向左流動(dòng):

<html>
<head>
<script type="text/javascript">
function changeTextDirection()
{
document.getElementById("p1").style.direction="rtl";
}
</script>
</head>
<body>

<p id="p1">This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.</p>

<input type="button" onclick="changeTextDirection()" 
value="Set text to flow right to left" />

</body>
</html>

HTML DOM Style 對(duì)象參考手冊(cè)