Five tips for Div+css page layouts _ Experience Exchange

Source: Internet
Author: User
Five tips for div+css page layouts _ Experience Exchange

1. Mobile selection of form text input:

In the text input field, if you add a hint, the visitor will often have to use the mouse to select and delete, and then enter useful information. In fact, just add onmouseover= "This.focus ()" onfocus= "This.select ()" code into <textarea>, everything will be much simpler, such as:

<textarea name=textarea wrap=virtual rows=2 cols=22 onmouseover= "This.focus ()" onfocus= "This.select ()" >Input 中文版.. </textarea>

Similarly, you can add code to <input>.

2. Form Input Unit Click Delete:

The same as in this column, just use the mouse slightly change, need to click instead of as long as the mouse overlay. Such as:

<input type=text name= "Address" size=19 value= "Enter,e-mail ..." onfocus= "this.value=" ">

After clicking on the input unit, it is not convenient to prompt the message to be deleted.


  3. The border setting of the form input unit:

Changing the traditional table-alone border will make your home page more or less. Such as:

<input type=radio name=action value=subscribe checked style= "border-bottom:dashed 1px; Border-left:dashed 1px; Border-right:dashed 1px; border-top:dashed 1px;background-color: #FEF5C8 ">


Which "style=***" for the left and right up and back color settings, applicable to other units, please try the reader himself.

4. Form input Unit text setting:

The font of the cells in the form can be modified, such as:

<input type=text name= "Address" size=19 value= "Enter,e-mail ..." style=font-family: "Verdana"; font-size:10px >

5. Modify the form properties to pop-up windows:

When most forms are activated, they are opened in the current page, affecting normal browsing. It is better to modify, such as:

<form method=post Action=url target=_blank>


where "Target=_blank" is opened for control in a pop-up window.

Above is div+css page layout of five tips _ experience Exchange content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • Related Article

    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.