Tips for div CSS form layout

Source: Internet
Author: User

1. Move the div css form text input:

In the text input column, if a prompt is added, visitors usually need to select and delete it with the mouse, and then enter useful information. In fact, as long as you add the onmouseover = "This. Focus ()" onfocus = "This. Select ()" code to <textarea>, everything will become much simpler, such:

Reference:

<Textarea name = textarea wrap = Virtual, rows = 2, cols = 22, onmouseover = "this. focus () "onfocus =" this. select () "> inputenglish .. </textarea>

Similarly, you can add the code to <input>.

2. Click to delete the input unit of the div css form:

This column is similar to the preceding one. It only changes slightly with the mouse. You need to click it instead of overwrite it with the mouse. For example:

Reference:

<Input type = text name = "Address" size = 19 value = "Enter, e-mail..." onfocus = "This. value ='' ">

Click the input unit and the prompt message is deleted.

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.