propriété javascript whiteSpace


  Résultats de traduction:

blanc

Anglais [waɪt] US [hwaɪt, waɪt]

adj Blanc, blanc pur; Caucasien

Blanc; impression, etc.) laisser un espace vide; faire du blanc, blanchir; blanchir

Troisième personne du singulier : blancs du pluriel : blancs Participe présent : merlan Passé : blanchi Participe passé : blanchi Comparatif : plus blanc Superlatif : plus blanc

espace

Anglais [speɪs] US [spes]

n Espace, espace; espace; moment

vt. à certains intervalles

Troisième personne du singulier : espaces Pluriel : espaces Participe présent : espacement Passé : espacé Participe passé : espacé

propriété javascript whiteSpacesyntaxe

Fonction : Définissez comment gérer les caractères d'espacement (tels que les espaces et les nouvelles lignes) dans le texte.

Syntaxe : Object.style.whiteSpace=normal|nowrap|pre

propriété javascript whiteSpaceexemple

<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>

Exécuter l'instance »

Cliquez sur le bouton « Exécuter l'instance » pour afficher l'instance en ligne

Recommandations populaires

Maison

vidéos

Questions et réponses