HTML5 input placeholder (placeholder) style

Source: Internet
Author: User

 placeholder Properties

Placeholder (placeholder) in the actual application is very common, mainly used to prompt input content, modern browsers support: placeholder style this is a search online. Placeholder style related knowledge, share:/* all */:-webkit-input-placeholder {color: #f00;}::-moz-placeholder {color: #f00;}/* Fir Efox 19+/:-ms-input-placeholder {color: #f00}/* Internet Explorer 10+/:-moz-placeholder {color: #f00;}/* Firefo X 14-18 * * * WebKit private/////#field2::-webkit-input-placeholder {color: #00f;} #field3::-webkit-input-placeholder {Colo R: #090; Background:lightgreen; Text-transform:uppercase;   #field4::-webkit-input-placeholder {font-style:italic; text-decoration:overline; letter-spacing:3px; color: #999;} * Mozilla Private/#field2::-moz-placeholder {color: #00f;} #field3::-moz-placeholder {color: #090; background:lightgreen; Text-transform:uppercase; #field4::-moz-placeholder {font-style:italic; text-decoration:overline; letter-spacing:3px; color: #999;} You can see that the placeholder pseudo class style is still relatively rich.

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.