A detailed introduction to CSS basic style links

Source: Internet
Author: User
This article mainly for you in detail the CSS basic style links, with a certain reference value, interested in small partners can refer to

I. Four states of CSS links

1.a:link Common, inaccessible links

2.a:visited user has visited the link

3.a:hover the mouse pointer is over the link

4.a:active the moment the link was clicked

a:link{    color: #FF0000;} a:visited{    color: #00FF00;} a:hover{    color: #0000FF;} a:active{    color: #0000FF;}

Second, the common way of linking

The Text-decoration attribute is mostly used to remove underscores from links

a:link{    color: #FF0000;    Text-decoration:none;}

Third, set the background color

Background-color

a:link{    Background-color:aquamarine;}
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.