javascript fontStyle property
Hasil terjemahan:
英 [fɔnt stail] AS [fɑnt staɪl]
n.glyph
javascript fontStyle propertysintaks
Fungsi: Tetapkan gaya fon.
Sintaks: Object.style.fontStyle=normal|italic|oblique
javascript fontStyle propertycontoh
<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