Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <head> <style> div { largeur: 150px; hauteur: 150px; couleur-de-fond: jaune; bordure: 1px solide noir; } #myDiv1 { transform: matrix(1, -0.3, 0, 1, 0, 0); } #myDiv2 { transform: matrix(1, 0, 0.5, 1, 150, 0); } </style> </head> <body> <h1>La méthode matrix()</h1> <p>La méthode matrix() combine toutes les méthodes de transformation 2D en une seule.</p> <div> Ceci est un élément div normal. </div> <div id="myDiv1"> Utiliser la méthode matrix(). </div> <div id="myDiv2"> Une autre utilisation de la méthode matrix(). </div> </body> </html>