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!