Example of css setting input text box style code and input style code
Sample Code for setting the input text box style in css:
Setting the style of the input element using css is one of the most common operations. Of course, it is also the most basic operation, and may not be familiar with friends who just came into contact with css, the following shows how to set the style of the text box through a simple code history. Of course, this demo may not be very beautiful. The purpose here is only to demonstrate the function. The Code is as follows:
<! DOCTYPE html>
The above Code sets the text box. The following describes the setting items:
1. Use width to set the width of the text box.
2. Use height to set the height of the text box.
3. border-top and border-left can be used to set the border style at the top or left of the text box.
4. background-color: Set the background color of the text box.
5. Set the text content in the color text box.
Related reading:
1. For details about the width attribute, see the width attribute section of CSS.
2. For details about the height attribute, see the height attribute section of CSS.
3. For details about the border-top attribute, refer to the border-top attribute section in CSS.
4. For details about the border-left attribute, refer to the border-left attribute section of CSS.
5. For details about the background-color attribute, refer to the background-color attribute section of CSS.
6. For more information about the color attributes, see section color attributes of CSS.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 11764.
For more information, see: http://www.softwhy.com/divcss/