In HTML <input> of the placeholder properties

The placeholder attribute is H5 newly added properties

语法:<input type="text" placeholder="text" />

Description: This attribute within the message input, i.e., in the above code, after running the message will be light colored text in the text box, to declare some useful to the user prompt, the rule setting a password or the like for example, in when the user to enter in the input box will automatically disappear

This information can give prompt message css way to set the color

::-webkit-input-placeholder { /* WebKit, Blink, Edge /
color: #909;
}
:-moz-placeholder { /
Mozilla Firefox 4 to 18 /
color: #909;
opacity: 1;
}
::-moz-placeholder { /
Mozilla Firefox 19+ /
color: #909;
opacity: 1;
}
:-ms-input-placeholder { /
Internet Explorer 10-11 */
color: #909;
}

Guess you like

Origin www.cnblogs.com/migyagn/p/11278504.html