:link: The status of the tag a has not been accessed;
: visited: the status of the tag a has been visited;
:hover: The state where the mouse hovers over the a tag;
:active: the status of the tag a is pressed by the mouse;
When writing styles, write the hair in this order:In fact, the essence is still the style of equal priority. The one written in the back will overwrite the front. The pseudo-class of the a tag is just combined with different action sequences. The triggering order of the action determines that the order of the pseudo-class must be written in lvha.
Let’s briefly talk about these 4 pseudo-classes:Because the first two states are normal, and the second two are real-time states, when the instant state is triggered, the normal state must be covered, so the two real-time states must be placed behind;
Because under normal circumstances: if the tag a is accessed, it will present the accessed state, so visited should be placed behind the link;
Because when the mouse is pressed, it is accompanied by the hovering A tag, so if you want to actively cover the hover, you must put the active behind it;
Sequential memory skills:lv package