white

英[waɪt] 美[hwaɪt, waɪt]

adj. 白、純粋、無色、透明、白人

n. 白; 白人; 空白; 白い顔料

vt. (書く、印刷するなど) 空白を残す; 白くする; 白くする; 漂白する

三人称単数:whites 複数形:whites 現在分詞:whiting 過去形:whited 過去分詞:whited 比較級:whiter 最上級:whitest

#space #英[speɪs]美[spes]

n. スペース、スペース; 空白、間隔; ギャップ; 瞬間

vt. 分離...、間にギャップを残す...

vi . 一定の間隔で配置します

三人称単数: スペース複数形: スペース現在分詞: spacing過去形: spaced 過去分詞: spaced

javascript whiteSpace属性 構文

機能: テキスト内の空白文字 (スペースや改行など) の処理方法を設定します。

構文: 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>

インスタンスの実行 »

[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します