- [分享]→☆☆ 有关表格的种种 ★★◎ 作者:七月小鱼 时间:2005-2-25 16:39:05
-
虚线表格
这是用border来定义的,将以下代码拷贝至 <TABLE> 里面
style="border:1px #5F94C9 dashed"
例如:
<table style="border:1px #5F94C9 dashed" width="200" border="0" cellspacing="0" cellpadding="2"></table>
同样的,点线也是一样设置,只要把 dashed 改成 dotted 就可以了。
布告
<table>
style="BORDER-RIGHT: #51bfe0 1px solid; BORDER-TOP: #51bfe0 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #51bfe0 1px solid; BORDER-BOTTOM: #51bfe0 1px solid"
height=100 cellspacing=0 cellpadding=0 width=200 bgcolor=#ffffff
border=0>
<tbody>
<tr>
<td align=middle width=15 height=15><font color=#51bfe0>·</font></td>
<td> </td>
<td align=middle width=15 height=15><font
color=#51bfe0>·</font></td>
</tr>
<tr>
<td> </td>
<td align=middle>公告</td>
<td> </td>
</tr>
<tr>
<td align=middle width=15 height=15><font color=#51bfe0>·</font></td>
<td> </td>
<td align=middle width=15 height=15><font
color=#51bfe0>·</font></td>
</tr>
</tbody>
</table>
相架
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5" height="5" style="border-top:1px solid black;border-left:1px solid black;font-size:1pt"> </td>
<td height="5" width="63"></td>
<td width="5" height="5" style="border-top:1px solid black;border-right:1px solid black;font-size:1pt"> </td>
</tr>
<tr>
<td width="5"></td>
<td bgcolor="#ffffff" valign="top" style="border:1px black solid" class="s12" width="63"><img src="../img/girl2.gif" width="60" height="60"></td>
<td width="5"></td>
</tr>
<tr>
<td width="5" height="5" style="border-bottom:1px solid black;border-left:1px solid black;font-size:1pt"> </td>
<td height="5" width="63"></td>
<td width="5" height="5" style="border-bottom:1px solid black;border-right:1px solid black;font-size:1pt"> </td>
</tr>
</table>
表格边框的显示与隐藏,是可以用frame参数来控制的。请注意它只控制表格的边框图,而不影晌单元格。
只显示上边框 <table frame=above>
只显示下边框 <table frame=below>
只显示左、右边框 <table frame=vsides>
只显示上、下边框 <table frame=hsides>
只显示左边框 <table frame=lhs>
只显示右边框 <table frame=rhs>
不显示任何边框 <table frame=void>