CSS Primer: Connection Properties

Source: Internet
Author: User
Css

  Connection Properties

In the HTML file in the hyperlink text after the browser will be underlined to show the way, and no dynamic effect, through the CSS Anchor Pseudo Classes, you can display the hyperlink text to achieve several different changes.

For example: <a href=http://www.webjx.com>www.webjx.com</a>

The above hyperlinks are displayed in an underlined manner on the browser page. But if the use of CSS Anchor Pseudo Classes can make dynamic effect, its label is as follows: Remember two attributes See ";" separated, detailed property value settings see CSS Common Properties (properties) and set Value list.

Raw code A:link{color:blue; font-size:14pt; Text-decoration:underline}
A:visited{color:blue; font-size:14pt; Text-decoration:underline}
a:hover{color:red; font-size:14pt; Text-decoration:none}
a:active{color:red; font-size:9pt; Text-decoration:none}
Show results Click here!

  Attribute classification

A:link is a connection that represents a normal state
A:visited is the connection that was accessed
A:hover is to move to the connection on behalf of the mouse
A:active is on behalf of the press down connection
Color is for connection colors
Font-size is the size of the connection text, applicable to point (PT) or pixels (px)
Text-decoration is a text style, none is underlined



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.