14_CSS pseudo-Class control links. html

Source: Internet
Author: User


<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>

<TITLE>CSS pseudo-Class control links </title>


<style type= "Text/css" >

A:link{color:black; text-decoration:underline;}

a:visited{color:red; text-decoration:line-through;}

A:hover{color:blue; text-decoration:overline;}

A:active{color:green; Text-decoration:blink}

a.web:visited{Color:gold;} /* pseudo-class works with CSS classes */

input{

height:30px;

width:300px;

border:2px Solid Gold;

vertical-align:middle;/* set the text outside the input box in the middle position outside the input box */

line-height:30px;/* The line height is set to the same height value, the text appears in the middle of the vertical direction */

}

Input:focus{background: #CCFFFF;} /* The input box becomes focus IE6/7 not supported */

</style>



<body>

<a href= "http://www.baidu.com" class= "Web" > Web Design </a>

<a href= "http://www.baidu.com" > Graphic design </a>

<a href= "http://www.baidu.com" > Anime design </a>

<a href= "http://www.baidu.com" >java design </a>

<a href= "http://www.baidu.com" >php design </a>

<a href= "http://www.baidu.com" >ios design </a>

<label> Username: <input type= "text" name= "username"/></label>

<label> Password: <input type= "password" name= "PSW"/></label>

</body>


14_CSS pseudo-Class control links. html

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.