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.
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>
<TD > </td>
</tr>
<tr>
<TD > </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.
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 >
<TR><TD width= ">111</TD><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;" >
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