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> .dropdown { position: relative; } .dropdown-content { afficher: aucun; position: absolute; couleur-de-fond: #f9f9f9; min-width: 160px; } .dropdown:hover .dropdown-content { afficher: bloc; } .desc { padding: 15px; text-align: center; } </style> </head> <body> <h2>Image déroulante</h2> <p>Déplacez la souris sur l'image ci-dessous pour ouvrir le contenu déroulant.</p> <div class="dropdown"> <img src="img_5terre.jpg" alt="Cinque Terre" width="100" height="50"> <div class="dropdown-content"> <img src="img_5terre.jpg" alt="Cinque Terre" width="300" height="200"> <div class="desc">Belle Cinque Terre</div> </div> </div> </body> </html>