Example of css setting input text box style code and input style code

Source: Internet
Author: User

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/

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.