Controls the CSS of input but does not affect the CheckBox and Radio styles.

Source: Internet
Author: User

However, the checkbox radio and so on will also change. These two controls are often not very satisfactory.
There is a way to change the style of other input controls without affecting checkbox and radio.
I haven't found any proper code for a long time: I just add a style, and then add a class = "xxx" to each checkbox control"
However, this is too troublesome. After testing and research, I found that expression (this. type! = "Checkbox ")? (In this way, you can set the following
Test the code in IE. This method is feasible in IE8, but it has not been tested in FireFox, <Meta name = "Generator" content = "EditPlus"> <meta name = "Author" content = ""> <meta name = "Keywords" content = ""> <meta name = "Description" content = ""> <br/> <style> input {padding: 1px; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; filter: expression (this. type! = "Checkbox ")? ("Progid: DXImageTransform. microsoft. gradient (GradientType = 0, StartColorStr = # ddddee, EndColorStr = # FFFFFF) "):" "); height: 22px; font-size: 8pt ;} </style> <p> <input type = "text"> <input type = "checkbox"> <input type = "button" value = "Please select">
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.