How to set the CSS connection & lt; a & gt; style and css setting Style

Source: Internet
Author: User

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/

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.