Control the link effect of a label + control input check box + marquee text

Source: Internet
Author: User

1.a:link{color:black. Control link Effect
2.a:visited{color:red;} controls the effect of the mouse point
3.a:hover{color:yellow: Controls the effect of mouse slide
4.a;active{color:black: The effect of control chain contact after
5.cursor:pointer; Mouse Change Hand type

6. Make the selected check box change text to red so that the input box automatically gets the text in the focus becomes red

Input:focus{color:red;}
input[type= "checkbox"]:checked+span{color:#f00;}

1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "Utf-8">5 <title>Untitled Document</title>6 <style>7 Input:focus{Color:Red;}8 input[type= "checkbox"]:checked+span{Color:#f00;}9 </style>Ten </Head> One <Body> A <inputtype= "text"value= "1111"Autofocus><BR> - <inputtype= "text"value= "1111"><BR> - <inputtype= "text"value= "1111"><BR> the <H1>Please select a hobby</H1> - <label><inputtype= "checkbox"name= "love[]"value= "movement"><span>Movement</span></label><BR> - <label><inputtype= "checkbox"name= "love[]"value= "Swimming"><span>Swimming</span></label><BR> - <label><inputtype= "checkbox"name= "love[]"value= "singing"><span>Sing</span></label><BR> + </Body> - </HTML>

                                                                                                                                                                                                                                                                                          

Control the link effect of a label + control input check box + Marquee text

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.