white
英[wa?t] 美[hwa?t, wa?t]
adj. 白、純粋、無(wú)色、透明、白人
n. 白; 白人; 空白; 白い顔料
vt. (書(shū)く、印刷するなど) 空白を殘す; 白くする; 白くする; 漂白する
三人稱単數(shù):whites 複數(shù)形:whites 現(xiàn)在分詞:whiting 過(guò)去形:whited 過(guò)去分詞:whited 比較級(jí):whiter 最上級(jí):whitest
#space #英[spe?s]美[spes]
n. スペース、スペース; 空白、間隔; ギャップ; 瞬間
vt. 分離...、間にギャップを殘す...
vi . 一定の間隔で配置します
三人稱単數(shù): スペース複數(shù)形: スペース現(xiàn)在分詞: spacing過(guò)去形: spaced 過(guò)去分詞: spaced
javascript whiteSpace屬性 構(gòu)文
機(jī)能: テキスト內(nèi)の空白文字 (スペースや改行など) の処理方法を設(shè)定します。
構(gòu)文: Object.style.whiteSpace=normal|nowrap|pre
javascript whiteSpace屬性 例
<html> <head> <script type="text/javascript"> function removeWrapping() { document.getElementById("div1").style.whiteSpace="nowrap"; } </script> </head> <body> <div id="div1"> 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. This is some text. This is some text. This is some text. </div> <br /> <input type="button" onclick="removeWrapping()" value="Do not let the text wrap" /> </body> </html>
インスタンスの実行 ?
[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します