Web standards: Five, Hyperlink Pseudo-Class

Source: Internet
Author: User
Web standards: Five, Hyperlink Pseudo-Class

Knowledge Points:

1. Four styles of links 2. Convert the link to block 3. Make a button with CSS 4. Drop cap 1) There are four pseudo-classes in the link's four style hyperlinks, namely: A:link not visited link a:visited visited link a:hover mouse move to link a:active The selected link is called a pseudo-class, that is, he is not a real class, the normal class is starting with a point, followed by a name, and it is a beginning followed by a colon, followed by a state-qualified character. Text-decoration the text in the HTML language, such as underlining. Value: None: Default, no decoration link: Flashing underline: underline Line-through: Line overline: Dash description: Four pseudo-classes must be written in a fixed order, otherwise some will not take effect, in order to follow the L (link) OV (visited  ) E H (hover) A (active) te principle. 2) Convert links to block-level element links in the default state is an inline element, converted to block-level elements can get a larger click area, you can set the height and width, the link to block-level elements, just add a display:block CSS properties. 3) using CSS to make a button here with the CSS making button, that is, the link to block-level elements on the basis of the block-level elements to add a background image, here I am using the local two images. 4) First drop caps need to apply pseudo-elements: First-letter Note: IE6 If you want to be compatible with First-letter, you need to leave a space between the selector and the style curly brace, otherwise IE6 will not be implemented. That is, there are spaces in the middle of First-letter and {}.

Web standards: Five, Hyperlink Pseudo-Class

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.