word

英 [w?:d]? ?美 [w?:rd]??

n.單詞;話語;諾言;消息

vt.措辭,用詞;用言語表達(dá)

vi.講話

第三人稱單數(shù): words 復(fù)數(shù): words 現(xiàn)在分詞: wording 過去式: worded 過去分詞: worded

spacing

英 [?spe?s??]? ?美 [?spes??]??

n.間隔,間距;跨距;疏密;留間隔

javascript wordSpacing屬性 語法

作用:設(shè)置文本中的單詞間距。

語法:Object.style.wordSpacing=normal|length

javascript wordSpacing屬性 示例

<html>
<head>
<script type="text/javascript">
function changeWordSpacing()
{
document.getElementById("p1").style.wordSpacing="10px";
}
</script>
</head>
<body>

<p id="p1">This is an example paragraph</p>

<input type="button" onclick="changeWordSpacing()" 
value="Change space between words" />

</body>
</html>

運(yùn)行實(shí)例 ?

點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例