word
英[w?:d]? ?美[w?:rd]??
n.單字;話語;承諾;訊息
vt .措辭,用詞;用言語表達(dá)
vi.講話
第三人稱單數(shù): words 複數(shù): words 現(xiàn)在分詞: wording 過去式: worded 過去分詞: worded
spacing
英[?spe?s??]? ?美[?spes??]??
n.間隔,間距;跨距;疏密;留間隔
javascript wordSpacing屬性 語法
作用:設(shè)定文字中的單字間距。
語法:Object.style.wordSpacing=normal|length
javascript wordSpacing屬性 範(fàn)例
<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>
執(zhí)行實(shí)例 ?
點(diǎn)擊 "執(zhí)行實(shí)例" 按鈕查看線上實(shí)例