placeholder color in css for all browsers
The placeholder color in CSS can be set for all browsers by using the following code:
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #999;
}
::-moz-placeholder { /* Firefox 19+ */
color: #999;
}
:-ms-input-placeholder { /* IE 10+ */
color: #999;
}
:-moz-placeholder { /* Firefox 18- */
color: #999;
}
This code sets the placeholder color for all major browsers, including Chrome, Firefox, Safari, and Internet Explorer. The color value can be changed to any desired color code
原文地址: https://www.cveoy.top/t/topic/dVw9 著作权归作者所有。请勿转载和采集!