普通table表格样式及代码大全(全)(一)
|
例中能使表格产生单线效果是设置了<table>标记的rules和frame参数,rules参数是对表格的内部边框作显示控制。 在内部加一条横线: 利用div内嵌套一个hr标签 <div>
<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 height=40
cellPadding=1 width=250 align=center
border=1>
<TABLE
style="BORDER-RIGHT: #ff6600 1px dashed; BORDER-TOP: #ff6600 1px dashed;
BORDER-LEFT: #ff6600 1px dashed; BORDER-BOTTOM: #ff6600 1px dashed;
BORDER-COLLAPSE: collapse" borderColor=#000000 height=40 cellPadding=1
width=250 align=center
border=1>
<TABLE
style="BORDER-RIGHT: #ff6600 2px dotted; BORDER-TOP: #ff6600 2px dotted;
BORDER-LEFT: #ff6600 2px dotted; BORDER-BOTTOM: #ff6600 2px dotted;
BORDER-COLLAPSE: collapse" borderColor=#ff6600 height=40 cellPadding=1
width=250 align=center
border=2>
<TABLE
borderColor=#000000 height=40 cellPadding=1 width=250 align=center
border=3>
<TABLE
style="BORDER-RIGHT: #00f901 10px groove; BORDER-TOP: #00f901 10px groove;
BORDER-LEFT: #00f901 10px groove; BORDER-BOTTOM: #00f901 10px groove;
BORDER-COLLAPSE: collapse" borderColor=#00f901 height=40 cellPadding=1
width=250 align=center
border=10>
<TABLE
style="BORDER-RIGHT: #00f901 10px ridge; BORDER-TOP: #00f901 10px ridge;
BORDER-LEFT: #00f901 10px ridge; BORDER-BOTTOM: #00f901 10px ridge;
BORDER-COLLAPSE: collapse" borderColor=#00f901 height=40 cellPadding=1
width=250 align=center
border=10>
<TABLE
style="BORDER-RIGHT: #00f901 10px inset; BORDER-TOP: #00f901 10px inset;
BORDER-LEFT: #00f901 10px inset; BORDER-BOTTOM: #00f901 10px inset;
BORDER-COLLAPSE: collapse" borderColor=#00f901 height=40 cellPadding=1
width=250 align=center
border=10>
<TABLE
style="BORDER-RIGHT: #00f901 10px outset; BORDER-TOP: #00f901 10px outset;
BORDER-LEFT: #00f901 10px outset; BORDER-BOTTOM: #00f901 10px outset;
BORDER-COLLAPSE: collapse" borderColor=#00f901 height=40 cellPadding=1
width=250 align=center
border=10>
<TABLE
style="BORDER-TOP-STYLE: solid; BORDER-RIGHT-STYLE: solid;
BORDER-LEFT-STYLE: solid; BORDER-BOTTOM-STYLE: solid" borderColor=#4a4a84
height=40 cellSpacing=8 cellPadding=2 width=250 align=center
bgColor=#ffffff border=2>
<TABLE
style="BORDER-TOP-STYLE: dashed; BORDER-RIGHT-STYLE: dashed;
BORDER-LEFT-STYLE: dashed; BORDER-BOTTOM-STYLE: dashed"
borderColor=#4a4a84 height=40 cellSpacing=8 cellPadding=2 width=250
align=center bgColor=#ffffff
border=2>
<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 height=40
cellPadding=1 width=250 align=center bgColor=#fffbec
border=0>
<TABLE
style="BORDER-BOTTOM-WIDTH: 0px; BORDER-COLLAPSE: collapse"
borderColor=#111111 bgColor=#DFFFDF cellSpacing=0 cellPadding=0 width=250
align=center border=1>
<TABLE
style="BORDER-TOP-WIDTH: 0px; BORDER-COLLAPSE: collapse"
borderColor=#111111 bgColor=#DFFFDF cellSpacing=0 cellPadding=0 width=250
align=center border=1>
<TABLE
style="BORDER-LEFT-WIDTH: 0px; BORDER-COLLAPSE: collapse"
borderColor=#ff6600 bgColor=#DFFFDF cellSpacing=0 cellPadding=0 width=250
align=center border=1>
<TABLE
style="BORDER-COLLAPSE: collapse; BORDER-RIGHT-WIDTH: 0px"
borderColor=#ff6600 bgColor=#DFFFDF cellSpacing=0 cellPadding=0 width=250
align=center border=1>
<TABLE
style="BORDER-LEFT-WIDTH: 0px; BORDER-COLLAPSE: collapse;
BORDER-RIGHT-WIDTH: 0px" borderColor=#ff6600 bgColor=#DFFFDF cellSpacing=0
cellPadding=0 width=250 align=center
border=1>
<TABLE
style="BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-COLLAPSE:
collapse" borderColor=#ff6600 bgColor=#DFFFDF cellSpacing=0 cellPadding=0
width=250 align=center border=1>
<TABLE
borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250
align=center border=1 frame=above>
<TABLE
borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250
align=center border=1 frame=below>
<TABLE
borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250
align=center border=1 frame=lhs>
<TABLE
borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250
align=center border=1 frame=rhs>
<TABLE
borderColor=#ff6600 cellSpacing=0 cellPadding=0 width=250 align=center
bgColor=#fffbec border=1 frame=void>
<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0
width=300 align=center bgColor=#ffffff
border=1>
<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0
width=300 align=center bgColor=#ffffff
border=1>
<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0
width=300 align=center bgColor=#ffffff
border=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000
cellSpacing=0 width=300 align=center bgColor=#ffffff
border=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000
cellSpacing=0 width=300 align=center bgColor=#ffffff
border=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000
cellSpacing=0 width=300 align=center bgColor=#ffffff
border=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000
cellSpacing=0 width=300 align=center bgColor=#ffffff
border=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#ff0033
cellSpacing=0 rules=cols width=300 align=center bgColor=#e1f8ff
border=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#ff0033
cellSpacing=0 rules=rows width=300 align=center bgColor=#e1f8ff
border=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#ff0033
cellSpacing=0 rules=none width=300 align=center bgColor=#e1f8ff
border=1>
<TABLE width=250 align=center
border=0>
<TABLE width=250 align=center
border=0>
<FIELDSET style="WIDTH: 250px"
align=center><LEGEND>标题</LEGEND>
<TABLE cellSpacing=0 cellPadding=0 width=250
align=center> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
原文:http://www.cnblogs.com/af826/p/3518442.html