⽹页设计中怎么让表格只显下边框<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>
</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>
</TR>
<TR>
<TD>为难</TD>
<TD> </TD>
</TR>
</TBODY>
</TABLE>
<BR></TD>
<TD>只显⽰左边框</TD>
</TR>
<TR>
<TD><TABLE cellSpacing="0" cellPadding="0" width="200" border="1" frame="rhs">
<TR>
<TD width="100"> </TD>
<TD align="right" width="100">左右</TD>
</TR>
<TR>
<TD> </TD>
<TD align="right">为难</TD>
</TR>
</TBODY>
</TABLE></TD>
<TD>只显⽰右边框</TD>
</TR>
<TR>
<TD><BR>
<TABLE cellSpacing="0" cellPadding="0" width="200" border="1" frame="void">
<TBODY>
<TR>
<TD align="right">光秃秃</TD>
<TD> </TD>
</TR>
<TR>
<TD> </TD>
<TD align="left">全脱了</TD>
</TR>
</TBODY>
</TABLE></TD>
<TD>不显⽰任何边框</TD>
</TR>
<TR>
<TD colSpan="2"><HR color="black" SIZE="1">
表格边框的显⽰与隐藏,是可以⽤frame参数来控制的。请注意它只控制表格的边框图,⽽不影晌单元格。<BR>        只显⽰上边框 <table  frame=above><BR>
只显⽰下边框 <table frame=below> <BR>
只显⽰左、右边框 <table  frame=vsides><BR>
只显⽰上、下边框 <table frame=hsides><BR>
只显⽰左边框 <table  frame=lhs><BR>
只显⽰右边框 <table frame=rhs><BR>
不显⽰任何边框 <table  frame=void></TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>table设置内边框
在table标签⾥写:
<table frame=below>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。