英 [fɔnt stail] AS [fɑnt staɪl]
n.glyph
javascript fontStyle property sintaks
Fungsi: Tetapkan gaya fon.
Sintaks: Object.style.fontStyle=normal|italic|oblique
javascript fontStyle property contoh
<html> <head> <script type="text/javascript"> function setFontStyle() { document.getElementById("p1").style.fontStyle="italic"; } </script> </head> <body> <p id="p1">This is an example paragraph.</p> <input type="button" onclick="setFontStyle()" value="Change font-style" /> </body> </html>
Run Instance »
Klik butang "Run Instance" untuk melihat instance dalam talian