Atribut javascript wordSpacing
Hasil terjemahan:
perkataan
Inggeris[wɜ:d] n Kata; : perkataan Plural: perkataan Present participle: wording Past tense: worded Past participle: wordedspacing
英[ˈspeɪsɪŋ] 美[ˈspesɪŋ] n;Atribut javascript wordSpacingsintaks
Fungsi: Tetapkan jarak perkataan dalam teks.
Tatabahasa: Object.style.wordSpacing=normal|panjang
Atribut javascript wordSpacingcontoh
<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 »
Klik butang "Run Instance" untuk melihat instance dalam talian