mot

Anglais[w?:d] US[w?:rd]

n Discours; Message

vt. : mots Pluriel : mots Participe présent : formulation Passé : formulé Participe passé : formulé

espacement

英[?spe?s??] 美[?spes??]

n.

attribut javascript wordSpacing syntaxe

Fonction?: Définissez l'espacement des mots dans le texte.

Grammaire?: Object.style.wordSpacing=normal|length

attribut javascript wordSpacing exemple

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

Exécuter l'instance ?

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