Exporter (0) Imprimer
Développer tout
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.
1 sur 5 ont trouvé cela utile - Évaluez ce sujet

:active pseudo-class

Sets the style of an element when it is engaged or active.

CSS 2.1, Section 5.11.3


selector :active {...}



A CSS simple selector

Standards information


The default value of the :active pseudo-class is browser-specific.

The :active pseudo-class is most often used with the a element. Windows Internet Explorer 7 and earlier only support using the :active pseudo-class with the a element. "Active" means that the user is navigating the link. The link has been activated, and some action is being performed but is not yet complete.

The :active pseudo-class is often used with :hover, :link, and :visited, the pseudo-classes that affect the other states of a link.

Dynamic HTML (DHTML) expressions can be used in place of the preceding value(s). As of Windows Internet Explorer 8, expressions are not supported in IE8 Standards mode. For more information, see About Dynamic Properties.


The following style rule uses the :active pseudo-class to set the font-weight and color attributes of an active link in a document.

    A:active { font-weight:bold; color:purple }



Cela vous a-t-il été utile ?
(1500 caractères restants)
Merci pour vos suggestions.
© 2014 Microsoft. Tous droits réservés.