日期:2014-05-17  浏览次数:20698 次

网页设计中怎么让表格只显下边框

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body><TABLE height="30" cellSpacing="0" cellPadding="0" width="100%" border="0">
? <TBODY>
??? <TR>
????? <TD></TD>
??? </TR>
? </TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="8" width="100%" border="0">
? <TBODY>
??? <TR>
????? <TD width="36%"><TABLE cellSpacing="0" cellPadding="0" width="200" border="1">
??????? <TBODY>
????????? <TR align="middle">
??????????? <TD>普</TD>
??????????? <TD>表</TD>
????????? </TR>
????????? <TR align="middle">
??????????? <TD>通</TD>
??????????? <TD>格</TD>
????????? </TR>
??????? </TBODY>
????? </TABLE></TD>
????? <TD width="64%">这是一普通的表格</TD>
??? </TR>
??? <TR>
????? <TD><BR>
????????? <TABLE cellSpacing="0" cellPadding="0" width="200" border="1" frame="above">
??????????? <TBODY>
????????????? <TR align="middle">
??????????????? <TD>不怕</TD>
??????????????? <TD>下雨</TD>
????????????? </TR>
????????????? <TR align="middle">
??????????????? <TD>?</TD>
??????????????? <TD>?</TD>
????????????? </TR>
??????????? </TBODY>
????????? </TABLE>
??????? <BR></TD>
????? <TD>只显示上边框</TD>
??? </TR>
??? <TR>
????? <TD><TABLE cellSpacing="0" cellPadding="0" width="200" border="1" frame="below">
??????? <TBODY>
????????? <TR>
??????????? <TD>?</TD>
??????????? <TD>?</TD>
????????? </TR>
????????? <TR>
??????????? <TD align="middle">下起雨来</TD>
??????????? <TD align="middle">该怎么办</TD>
????????? </TR>
??????? </TBODY>
????? </TABLE></TD>
????? <TD>只显示下边框</TD>
??? </TR>
??? <TR>
????? <TD><BR>
????????? <TABLE cellSpacing="0" cellPadding="0" width="200" border="1" frame="vsides">
??????????? <TBODY>
????????????? <TR>
??????????????? <TD align="middle">上不着天</TD>
??????????????? <TD>?</TD>
????????????? </TR>
????????????? <TR>
??????????????? <TD>?</TD>
??????????????? <TD align="middle">下不着地</TD>
????????????? </TR>
??????????? </TBODY>
????????? </TABLE>
??????? <BR></TD>
????? <TD>只显示左、右边框</TD>
??? </TR>
??? <TR>
????? <TD><TABLE cellSpacing="0" cellPadding="0" width="200" border="1" frame="hsides">
??????? <TBODY>
????????? <TR>
??????????? <TD>?</TD>
??????????? <TD align="middle">两边走开</TD>
????????? </TR>
????????? <TR>
??????????? <TD align="middle">老子姓王</TD>
??????????? <TD>?</TD>
????????? </TR>
??????? </TBODY>
????? </TABLE></TD>
????? <TD>只显示上、下边框</TD>
??? </TR>
??? <TR>
????? <TD><BR>
????????? <TABLE cellSpacing="0" cellPadding="0" width="200" border="1" frame="lhs">
??????????? <TBODY>
????????????? <TR>
??????????????? <TD width="100">左右</TD>
??????????????? <TD width="100">?</TD>
??????????