| Pseudo-classes |
NN |
IE |
W3C |
Utilisation |
| active |
|
4.0 |
CSS1 |
Ajoute un style spécial à un lien spécifique |
| hover |
7.1 |
4.0 |
CSS1 |
Ajoute un style spécial à un lien survolé |
| link |
4.0 |
3.0 |
CSS1 |
Ajoute un style spécial à un lien jamais cliqué |
| visited |
4.0 |
3.0 |
CSS1 |
Ajoute un style spécial à un lien visité |
| :first-child |
7.0 |
|
CSS2 |
Adds special style to an element that is the first child of some other
element |
| :lang |
|
|
CSS2 |
Allows the author to specify a language to use in a specified element
|
Exemple de définition de style avec les pseudos classes
<style type="text/css">
a:link{text-decoration:none;color:red;}
a:visited{text-decoration:none;color:orange;}
a:hover{text-decoration:underline;color:blue;}
</style>
|