CSS pseudo-Class selector

Source: Internet
Author: User
CSS pseudo-class selectors: styles to add to hyperlinks (different states of links and styles)

A hyperlink that has four states:

Normal state (: link): The mouse is not placed on the previous linked style.

Put on status (: hover): The style when the mouse is placed over the link.

Activation status (: Active): Hold down the left mouse button to not release the style, this state is particularly short.

Visited status (: visited): Press the left mouse button, and bounce, then the style effect.

In normal work, the following wording is used to add a different style to the link:

A:link, a:visited{color: #444; text-decoration:none;} The normal state and the visited state are combined.

a:hover{color: #990000; text-decoration:underline;} "Mouse on" to do a single effect

CSS pseudo-Class selector

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.