propriété javascript fontStyle


  Résultats de traduction:

Anglais [fɔnt stail] US [fɑnt staɪl]

n Font

.

propriété javascript fontStylesyntaxe

Fonction : Définissez le style de police.

Syntaxe : Object.style.fontStyle=normal|italic|oblique

propriété javascript fontStyleexemple

<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>

Exécuter l'instance »

Cliquez sur le bouton « Exécuter l'instance » pour afficher l'instance en ligne

Maison

vidéos

Questions et réponses