Simple and practical Web Form effects

Source: Internet
Author: User
Web page in the process of making our home page, the use of the table is very many places, flexible use of table skills can be a lot of our web page, here I will elaborate on a few special effects table production methods.

   A, color dotted table

<style type= "Text/css" >
<!--
. tab1 {
Border-top-width:thin;
Border-right-width:thin;
Border-bottom-width:thin;
Border-left-width:thin;
border-top-style:dotted;
border-right-style:dotted;
border-bottom-style:dotted;
border-left-style:dotted;
Border-top-color: #00CC66;
Border-right-color: #0099CC;
Border-bottom-color: #FF0000;
Border-left-color: #6699FF;
}
-->
</style>
<table width= "border=" 0 "cellpadding=" 2 "cellspacing=" 2 "class=" TAB1 ">
<tr>
<td><div align= "center" > Virtual </div></td>
<td><div align= "center" > Line </div></td>
</tr>
<tr>
<td><div align= "center" > Table </div></td>
<td><div align= "center" > Grid </div></td>
</tr>
</table>

   second, mouse pointer to cell discoloration
The mouse leaves the effect of the mouse, you can modify the value of #ffcccc to change the color
<table width= "border=" 1 "cellspacing=" 0 "cellpadding=" 0 ">
<tr>
&LT;TD > </td>
</tr>
<tr>
&LT;TD > </td>
</tr>
</table>

   three-dimensional form

<table border= "1" bordercolorlight= "#ffffff" bordercolordark= "#ffffff" width= "" cellpadding= "0" cellspacing= "0 ">
&LT;TR align= "center" >
&LT;TD width= "86"
bordercolorlight= "#000000" bordercolordark= "#eeeeee" bgcolor= "#B7B7B7" > Stereo </td>
&LT;TD width= "108"
bordercolorlight= "#000000" bordercolordark= "#eeeeee" bgcolor= "#B7B7B7" > Form </td>
</tr>
</table>

   Four, table nesting
1, use the spacing of the table to do nesting
<table width= "border=" 1 "cellspacing=" 4 "cellpadding=" 0 ">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
The main is to use the spacing cellspacing= "4"

2. Make full use of the way of alignment according to the table
Here the first table is left, the second table is right, and the third table is centered. So when you randomly adjust the size of the three tables inside, their spacing will stay the same, very convenient.

<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolor=" #FF0000 ">
<tr>
<td><table width= "border=" 1 "align=" left "cellpadding=" 0 "cellspacing=" 0 ">
<tr>
<td> </td>
</tr>
</table>
<table width= "border=" 1 "align=" right "cellpadding=" 0 "cellspacing=" 0 ">
<tr>
<td> </td>
</tr>
</table>
<table width= "border=" 1 "align=" center "cellpadding=" 0 "cellspacing=" 0 ">
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>

   Five, translucent form

The main point here is to use the CSS filter Filter:alpha (opacity=20).
<style type= "Text/css" >
<!--
. BG {
Background-color: #66CCFF;
Filter:alpha (OPACITY=20);
}
-->
<table width= "border=" 0 "cellpadding=" 0 "cellspacing=" 0 "class=" BG ">
<tr>
<td><div align= "center" > Half </div></td>
<td><div align= "center" > Transparent </div></td>
</tr>
<tr>
<td><div align= "center" > Table </div></td>
<td><div align= "center" > Grid </div></td>
</tr>
</table>

   vi. Shadow Form

The main use of CSS filter style= "Filter:shadow (color= #cccccc, direction=120); Width:300;padding-right:10;padding-bottom:10"
<div style= "Filter:shadow (color= #cccccc, direction=120); Width:300;padding-right:10;padding-bottom:10" >
<table width=300 border=1 bgcolor= #EAEAEA >
&LT;TR&GT;&LT;TD width= "&GT;111&LT;/TD&GT;&LT;TD" width= ">222</td><td width=" >333</td ></tr>
</table>
</div>

Attach: Method of inserting CSS style (we use translucent form here to explain)
The first method is to define a CSS name.
Like what
<style type= "Text/css" >
<!--
. BG {
Background-color: #66CCFF;
Filter:alpha (OPACITY=20);
}
-->
Elements need to use CSS, such as tables, to define a class on it, such as
<table width= "border=" 0 "cellpadding=" 0 "cellspacing=" 0 "class=" BG ">
The second way is to insert the relevant code directly where you need to use CSS elements, style= "" such as:
<table width= "201" border= "1" style= "Filter:alpha (opacity=20); Background-color: #66CCFF;" >

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.