teks
Bahasa Inggeris [tekst] Amerika [tɛkst] n Teks, teks asal, buku teks; Formula: di-smsindent
Bahasa Inggeris [ɪnˈdent] Amerika [ɪnˈdent]vt Cut... untuk membuat bentuk bergerigi
n.tertib ketiga; orang tunggal: indents Participle hadir: indenting Past tense: indented Past participle: indented
javascript textIndentProperty sintaks
Fungsi: Inden baris pertama teks dalam elemen.
Sintaks: Object.style.textIndent=length|%
javascript textIndentProperty contoh
<html> <head> <script type="text/javascript"> function setTextIndent() { document.getElementById("div1").style.textIndent="50px"; } </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="setTextIndent()" value="Indent first line of text" /> </body> </html>
Run Instance »
Klik butang "Run Instance" untuk melihat instance dalam talian