Easily implement online filling with CSS

Source: Internet
Author: User

When there is prize information online, I often see some registry forms, and there is only one line for you to fill in, just like the blank question during the exam, Cool!
In fact, it is not difficult to make such an effect. You only need to use a very short CSS code!
  

The code is as follows: Copy code
<Style type = "text/css">
<! --
. Xian {BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none}
-->
</Style>

The code has the following functions:
"BORDER-LEFT-STYLE: none": the left border is not displayed.
"BORDER-RIGHT-STYLE: none": the right border is not displayed.
"BORDER-TOP-STYLE: none": the upper BORDER is not displayed.
"BORDER-bottom-STYLE: none": the upper BORDER is not displayed. Add this line and no borders are displayed.
Let's take a look at an application instance:
     

The code is as follows: Copy code
<Html>
<Head>
<Title> online blank filling </title>
<Style type = "text/css">
<! --
. Xian {BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none ;}
-->
</Style> <! -- Note: This section is css code. You can change the parameters here to set a cool effect. -->
</Head>
<Body bgcolor = "# FFFFFF" text = "#000000">
Hide your border
<P> user name:
<Input type = "text" name = "name" class = xian> <! -- Note: class = this line must be added. Set your css to be applied in the form. -->
</P>
</Body>
</Html>

The effect is concise and refreshing. How can I change your form!

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.