Complete table special effect code

Source: Internet
Author: User
1. Two thin-line table practices
<Table width = "100%" border = "1" bordercolor = "#000000">
<Tr bordercolor = "# ffffff">
<TD> the table edge is 1, the line color is black, and the line color is white. </TD>
</Tr>
</Table>
<P>
<Table width = "100%" border = "0" cellspacing = "1" bgcolor = "#000000">
<Tr>
<TD bgcolor = "# ffffff"> the table edge is 0, the spacing is 1, the background color is black, and the row background color is white. </TD>
</Tr>
</Table>
2. three-dimensional table
<Table border = 1 cellspacing = 0 width = 100% bordercolorlight = #333333 bordercolordark = # efefef>
<Tr bgcolor = # cccccc>
<TD> it365cn </TD>
<TD> it365cn </TD>
<TD> it365cn </TD>
<TD> it365cn </TD>
</Tr>
<Tr bgcolor = # cccccc>
<TD> cnbruce </TD>
<TD> cnbruce </TD>
<TD> cnbruce </TD>
<TD> cnbruce </TD>
</Tr>
</Table>
Table edge is 1, interval is 0, top left is #333333, bottom right is # efefef, row background color is # cccccc
3. Alternative Round Table Creation
Source image:
<Table cellpadding = 0 cellspacing = 0 border = 0 width = 282 align = center>
<Tr Height = 1>
<TD rowspan = 4 width = 1> </TD>
<TD rowspan = 3 width = 1> </TD>
<TD rowspan = 2 width = 1> </TD>
<TD width = 2> </TD>
<TD bgcolor = #43b5c9> </TD>
<TD width = 2> </TD>
<TD rowspan = 2 width = 1> </TD>
<TD rowspan = 3 width = 1> </TD>
<TD rowspan = 4 width = 1> </TD>
</Tr>
<Tr Height = 1>
<TD bgcolor = #43b5c9> </TD>
<TD bgcolor = #43b5c9> </TD>
<TD bgcolor = #43b5c9> </TD>
</Tr>
<Tr Height = 1>
<TD bgcolor = #43b5c9> </TD>
<TD colspan = 3 bgcolor = #43b5c9> </TD>
<TD bgcolor = #43b5c9> </TD>
</Tr>
<Tr Height = 2>
<TD bgcolor = #43b5c9> </TD>
<TD colspan = 5 bgcolor = #43b5c9> </TD>
<TD bgcolor = #43b5c9> </TD>
</Tr>
</Table>
4. dotted border table
<Style type = "text/CSS">
. TB {border-bottom: #000000 1px dotted; border-top: #000000 1px dotted; border-left:
#000000 1px dotted; border-Right: #000000 1px dotted ;}
</Style>
<Table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
<Tr>
<TD class = "TB"> <center> www.blueidea.com </TD>
</Tr>
</Table>
<P>
Dotted Line 1
<HR size = 1 style = "border: 1px dotted #001403;">
Dotted Line 2
<P size = 1 style = "border: 1px dotted #001403;">
5. sharded table
<Fieldset>
<Legend> item </legend>
Content
</Fieldset>
6. Change the color of cell 1 through a: hover.
<Style>
A: Link, A: visited, A: hover
{Width: 100%; text-Decoration: none; font-family: verdana; font-size: 10px; color: White}
A: hover {Background: # 0099ff; color: Black}
TD {Background: # 3366cc; color: White; padding: 0px}
</Style>

<Table width = 100% cellspacing = 1 bgcolor = Black>
<Tr>
<TD> <a href = "#"> blueidea
<TD> <a href = "#">. com
<Tr>
<TD> <a href = "#"> cnbruce
<TD> <a href = "#">. com
</Table>
7. The color-changing cell 2 has been made into CSS. Pay attention to the transparent effect.
<Style type = "text/CSS">
. AA
{Background-color: # 0000ff; color: # ff0000; filter: alpha (opacity = 50 )}
. Bb
{Background-color: # 3366cc; color: # ffffff}
</Style>

& Lt; table width = "100%" & gt;
<Tr>
<TD onmouseover = "This. classname = 'A'" onmouseout = "This. classname = 'bb '"
Class = "BB"> <center> <B> cnbruce </TD>
</Tr>
</Table>
8. color-changing cell 3, made through the mouse event. A little Microsoft-like
<Table width = "100%" border = "1" cellpadding = "3" cellspacing = "0"
Bordercolor = "# efefef" bgcolor = "# efefef">
<Tr>
<TD onmouseout = "This. bgcolor = '# efefef'; this. bordercolor =' # efefef '";
Onmouseover = "This. bgcolor = '# cccccc'; this. bordercolor =' #000033 '"> <Div align = "Left">
Blueidea </div> </TD>
</Tr>
<Tr>
<TD
Onmouseout = "this. bgcolor = '# efefef'; this. bordercolor = '# efefef' "; onmouseover =" this. bgcolor = '# cccccc'; this. bordercolor = '#000033' ">
Cnbruce </TD>
</Tr>
</Table>
9. Transparent table
<Table bgcolor = # ececec style = "filter: alpha (opacity = 50)" width = 200 Height = 100 border = 0>
<Tr> <TD> <center> cnbruce </TD> </tr>
</Table>
11. VML Code Rounded corner table
<HTML xmlns: V>
<Style>
V: * {behavior: URL (# default # VML )}
</Style>
<Body>
<V: roundrect style = "position: relative; width: 150; Height: 240px">
<V: Shadow on = "T" type = "single" color = "# b3b3b3" offset = "3px, 3px"/>
<V: textbox style = "font-size: 10.2pt;"> VML </V: textbox>
</V: roundrect>
</Body>
</Html>
(2 ).
<HTML xmlns: V>
<Style>
V: * {behavior: URL (# default # VML )}
</Style>
<Body>
<V: roundrect style = "position: relative; width: 150; Height: 240px">
<V: path textpathok = "true"/>
<V: textpath on = "true" string = "cnbrucecnbrucecnbrucecnbrucecnbruc
Ecnbrucecnbrucecnbrucecnbrucecnbrucecnbrucecnbrucecnbrucecnbrucecnbruce "/>
<V: Shadow on = "T" type = "single" color = "# b3b3b3" offset = "3px, 3px"/>
<V: textbox style = "font-size: 10.2pt;"> VML </V: textbox>
</V: roundrect>
</Body>
</Html>
(3 ).
<HTML xmlns: V>
<Style>
V: * {behavior: URL (# default # VML )}
</Style>
<Body>
<V: roundrect style = "position: relative; width: 150; Height: 240px" arcsize = 0.5>
<V: Shadow on = "T" type = "single" color = "# b3b3b3" offset = "3px, 3px"/>
<V: textbox style = "font-size: 10.2pt;"> VML </V: textbox>
</V: roundrect>
</Body>
</Html>

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.