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> <style> .tooltip { position: relative; afficher: inline-block; border-bottom: 1px dotted black; curseur: pointeur; } .tooltiptext { visibilité: caché; largeur: 130px; couleur-de-fond: noir; couleur: #ffffff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; haut: -5px; droite: 105%; } .tooltip:hover .tooltiptext { visibilité: visible; } </style> <body style="text-align:center;"> <h2>
Tooltip aligné à gauche
</h2> <p>Déplacez la souris sur le texte ci-dessous :</p> <div class="tooltip">Hover over me <span class="tooltiptext">Certain texte d'info-bulle</span> </div> </body> </html>