Change rollover effects in order of CSS types

Source: Internet
Author: User
Css

You may have realized that you can create a CSS rollover effect by specifying a different style for each key link, which includes normal link (normal), access, flip, and activate. And, you may also know that the order of CSS types can have an effect difference, and the style of the CSS code will replace the style of the previous order for the same element. It is important to establish the type Order of tumbling effects.

Now let's see how to schedule the type of link state to support normal rollover effects without conflict, and how to rearrange these type orders to get a different rollover effect.

Link state

A typical CSS rollover effect relies on a standalone type of one of the four states in the hyperlink. You can create a <a> (hyperlink) type that comes with a CSS pre-class to specify the link state:

a:link--General, non-access hyperlinks

a:visited--Access to hyperlinks

a:hover--the link when the visitor operates the mouse

a:active--Click on the link

In order to make a typical CSS rollover work, the CSS type Order in CSS code is important, whether it's an external type table or a type rule embedded in the HIML page title bar.

The A:link type occurs as early as it can be applied to all links. The a:visited type is ranked second, and it replaces any linked a:link format. (If the A:link type follows the A:visited,a:link, the a:visited type may be substituted.) followed by the a:hover type, which is used only to access the link under the mouse. The last is a:active, so when the link is clicked, it can replace all other types. A total of 3 pages. 1 2 3 8:

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.