word

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

n.單字;話語;承諾;訊息

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

vi.講話

spacing

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

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

css word-spacing屬性 語法

作用:word-spacing 屬性增加或減少單字間的空白(即字間隔)。

說明:此屬性定義元素中字之間插入多少空白符。針對這個屬性,「字」 定義為由空格符包圍的一個字串。如果指定為長度值,會調(diào)整字之間的通常間隔;所以,normal 就等於設(shè)定為 0。允許指定負(fù)長度值,這會讓字之間擠得更緊。

註解:允許使用負(fù)值。利用這個屬性,可能會創(chuàng)建字間隔太寬的文檔,所以,使用 word-spacing 時要小心。

css word-spacing屬性 範(fàn)例

<html>
<head>
<style type="text/css">
p.spread {word-spacing: 30px;}
p.tight {word-spacing: -0.5em;}
</style>
</head>
<body>
<p class="spread">This is some text. This is some text.</p>
<p class="tight">This is some text. This is some text.</p>
</body>
</html>
執(zhí)行實例 ?

#點擊 "執(zhí)行實例" 按鈕查看線上實例

#