How to add color to input in css
This article mainly explains "how to add color to input in css". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to add color to input in css".
Add color method: 1, use color attribute to add font color to input element, syntax is "color: color value;"; 2, use "background-color" attribute to add background color to input element, syntax is "background-color: color value;".
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
How to add color to input in css
You can use the color attribute to add a font color to the input element and the background-color attribute to add a background color to the input element.
Examples are as follows:
Document input {color:#ffffff; background-color:#000000;}
Output result:
Thank you for your reading, these are the contents of "how to add color to input in css". After the study of this article, I believe you have a deeper understanding of how to add color to input in css, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!