fon javascriptWeight property
Hasil terjemahan:
英 [fɔnt weit] 美 [fɑnt wet]
[pengiraan][WIN] fon skala kelabu
fon javascriptWeight propertysintaks
Fungsi: Tetapkan ketebalan aksara.
Sintaks: Object.style.fontWeight=value
fon javascriptWeight propertycontoh
<html> <head> <script type="text/javascript"> function setFontWeight() { document.getElementById("p1").style.fontWeight="900"; } </script> </head> <body> <p id="p1">This is an example paragraph.</p> <p>This is another example paragraph.</p> <input type="button" onclick="setFontWeight()" value="Display bold text" /> </body> </html>
Run Instance »
Klik butang "Run Instance" untuk melihat instance dalam talian