word
英[w?:d] 美[w?:rd]
n. 言葉; 談話; 約束; メッセージ
vt .言葉遣い、言葉遣い; 言葉で表現(xiàn)する
vi.スピーチ
三人稱単數(shù):words 複數(shù)形:words 現(xiàn)在分詞:wording 過(guò)去形:worded 過(guò)去分詞:worded
spacing
英[?spe?s??] 美[?spes??]
n. 間隔、間隔; スパン; 密度; 隙間を殘す
JavaScriptのwordSpacing屬性 構(gòu)文
機(jī)能:テキスト內(nèi)の単語(yǔ)の間隔を設(shè)定します。
構(gòu)文: 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>
インスタンスの実行 ?
[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します