javascript wordSpacing attribute
Translation results:
word
英[wɜ:d] 美[wɜ:rd]
n. Word; Discourse; Promise; Message
vt .Wording, wording; expressing with words
vi.Speech
Third person singular: words Plural: words Present participle: wording Past tense: worded Past participle: worded
spacing
英[ˈspeɪsɪŋ] 美[ˈspesɪŋ]
n. Spacing, spacing; span; density; leaving gaps
javascript wordSpacing attributesyntax
Function:Set the word spacing in the text.
Syntax: Object.style.wordSpacing=normal|length
javascript wordSpacing attributeexample
<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>
Run instance »
Click the "Run instance" button to view the online instance