英 ['let?spe?s??]? ?美 ['let?spe?s??]??
n.字間隔空
javascript letterSpacing屬性 語(yǔ)法
作用:設(shè)置字符之間的空白。
語(yǔ)法:Object.style.letterSpacing=normal|length
javascript letterSpacing屬性 示例
<html> <head> <script type="text/javascript"> function changeLetterSpacing() { document.getElementById("p1").style.letterSpacing="3"; document.getElementById("p2").style.letterSpacing="-1"; } </script> </head> <body> <p id="p1">This is an example paragraph.</p> <p id="p2">This is another example paragraph.</p> <input type="button" onclick="changeLetterSpacing()" value="Change letter-spacing" /> </body> </html>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例