How does CSS set the style of the connection <a> and css set the style?
How to set the style of CSS connection <a>:
In the Website, you may need to set the link style to be more beautiful. By default, the style after the link is not clicked is different, this is a user-friendly effect, which can effectively distinguish whether a link has been clicked. The following describes how to set a connection <a> style.
I. style attributes:
1. a: link: defines the style before clicking a link.
2. a: visited: defines the style after the link is clicked.
3. a: active: defines the style when the link is activated, that is, the style when the mouse is pressed.
4. a: hover: defines the style when the mouse is suspended on the connection.
Ii. code example:
<! DOCTYPE html>
The above Code sets the style of connection in four states.
Note: The order of the four selectors for setting style attributes cannot be changed.
Related reading:
1. For the usage of the four selectors, see Chapter a: link, a: visited, a: hover, And a: active in CSS.
2. For details about the link selector, refer to the link pseudo-class selector E: link 1 in CSS.
3. For details about the visited selector, refer to the section E: visited, the link pseudo-class selector of CSS.
4. For details about the hover selector, see section E: hover.
5. For more information about the active selector, see section E: active.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 11582.
For more information, see: http://www.softwhy.com/divcss/