英 [lain hait] 美 [laɪn haɪt]
行高
harta javascript lineHeight sintaks
Fungsi: Tetapkan jarak antara baris (ketinggian baris).
Sintaks: Object.style.lineHeight=normal|nombor|panjang|%
harta javascript lineHeight contoh
<html> <head> <script type="text/javascript"> function changeLineHeight() { document.getElementById("div1").style.lineHeight="2"; } </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="changeLineHeight()" value="Change line-height" /> </body> </html>
Run Instance »
Klik butang "Run Instance" untuk melihat instance dalam talian