CSS: active selectors
CSS selectors complete reference manual
Definition and Usage
: Active Adds special style to link activities.
When you click on a link when it becomes the active link.
Tip: : Link selector set unvisited pages link style, : visited selectors set the style pages visited link, : hover selector When hover link style on.
Note: In order tohave the desired effect, the CSS definition,: active must be located in: after hover! !
Browser Support
Figures in the table represent the first browser to support the version number of the property.
选择器 | |||||
---|---|---|---|---|---|
:active | 4.0 | 7.0 | 2.0 | 3.1 | 9.6 |
Note: For all the elements as well as a new version of IE8 browser support: active selector.: Active selector for IE7 supports only link.
related articles
CSS tutorial: CSS Links
Tutorial the CSS: the CSS pseudo-classes
More examples
Examples
Active, visited, unvisited, or when there are hover on link:
a: visited {color: green;}
a: hover {color: red;}
a: active {color: yellow;}
try it"
Examples
Different styles of link style:
a.ex2: hover, a.ex2: active {font-size: 150%;}
try it"