普通table表格样式及代码大全(全)(一)
单实线边框表格
<table style="border-collapse: collapse" borderColor=#000000 height=40 cellPadding=1 width=250 align=center border=1>
<tbody>
<tr>
<td>
<div align=center>单实线边框表格</div>
</td>
</tr>
</tbody>
</table>

 

虚线边框表格

 

<table style="border-right: #ff6600 1px dashed;border-top: #ff6600 1px dashed; boeder-left: #ff6600 1px dashed; border-bottom: #ff6600 1px dashed; border-collapse: collapse"
borderColor=#000000 height=40 cellPadding=1 width=250 align=center border=1>
<tbody>
<tr>
<td>
<div align=center>单实线边框表格</div>
</td>
</tr>
</tbody>
</table>

 

点线边框表格
<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>
<tbody>
<tr>
<td>
<div align=center>点线边框表格</div>
</td>
</tr>
</tbody>
</table>

 

双实线边框表格
<table  borderColor=#000000 height=40 cellPadding=1 width=250 align=center border=3>
<tbody>
<tr>
<td>
<div align=center>双实线边框表格</div>
</td>
</tr>
</tbody>
</table>

 

槽线边框表格
<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>
<tbody>
<tr>
<td>
<div align=center>槽线边框表格</div>
</td>
</tr>
</tbody>
</table>

 

脊线边框表格
<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>
<tbody>
<tr>
<td>
<div align=center>脊线边框表格</div>
</td>
</tr>
</tbody>
</table>

 

内凹效果边框
<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>
<tbody>
<tr>
<td>
<div align=center>内凹效果边框</div>
</td>
</tr>
</tbody>
</table>
外凸效果边框
<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>
<tbody>
<tr>
<td>
<div align=center>外凸效果边框</div>
</td>
</tr>
</tbody>
</table>
内虚外实边框
<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>
<tbody>
<tr>
<td>
<div align=center>内虚外实边框</div>
</td>
</tr>
</tbody>
</table>

 

外虚内实边框
<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>
<tbody>
<tr>
<td>
<div align=center>外虚内实边框</div>
</td>
</tr>
</tbody>
</table>

 

 
无边框表格
<table style="BORDER-COLLAPSE: collapse" borderColor=#000000 height=40 cellPadding=1 width=250 align=center
bgColor=#fffbec border=0>
<tbody>
<tr>
<td>
<div align=center>无边框表格</div>
</td>
</tr>
</tbody>
</table>

 

隐藏下边框
<TABLE style="BORDER-BOTTOM-WIDTH: 0px; BORDER-COLLAPSE: collapse" borderColor=#111111 bgColor=#DFFFDF cellSpacing=0
cellPadding=0 width=250 align=center border=1>
<TBODY>
<TR align=middle>
<TD style="BORDER-BOTTOM: medium none" height=40>隐藏下边框</TD>
</TR>
</TBODY>
</TABLE>

 

隐藏上边框

<TABLE style="BORDER-TOP-WIDTH: 0px; BORDER-COLLAPSE: collapse" borderColor=#111111 bgColor=#DFFFDF cellSpacing=0 cellPadding=0 width=250 align=center border=1>
<TBODY>
<TR align=middle>
<TD style="BORDER-TOP: medium none" height=40>隐藏上边框</TD></TR></TBODY></TABLE>

隐藏左边框

<TABLE
style="BORDER-LEFT-WIDTH: 0px; BORDER-COLLAPSE: collapse"
borderColor=#ff6600 bgColor=#DFFFDF cellSpacing=0 cellPadding=0
width=250 align=center border=1>
<TBODY>
<TR align=middle>
<TD style="BORDER-LEFT: medium none" height=40>隐藏左边框 </TD></TR></TBODY></TABLE>

隐藏右边框

<TABLE
style="BORDER-COLLAPSE: collapse; BORDER-RIGHT-WIDTH: 0px"
borderColor=#ff6600 bgColor=#DFFFDF cellSpacing=0 cellPadding=0
width=250 align=center border=1>
<TBODY>
<TR align=middle>
<TD style="BORDER-RIGHT: medium none" height=40>隐藏右边框 </TD></TR></TBODY></TABLE>

隐藏左右边框

<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>
<TBODY>
<TR align=middle>
<TD
style="BORDER-RIGHT: medium none; BORDER-LEFT: medium none"
height=40>隐藏左右边框 </TD></TR></TBODY></TABLE>

隐藏上下边框

<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>
<TBODY>
<TR align=middle>
<TD
style="BORDER-TOP: medium none; BORDER-BOTTOM: medium none"
height=40>隐藏上下边框</TD></TR></TBODY></TABLE>

只显示上边框

<TABLE borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250 align=center border=1 frame=above>
<TBODY>
<TR align=middle>
<TD height=40>只显示上边框</TD></TR></TBODY></TABLE>

只显示下边框

<TABLE borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250 align=center border=1 frame=below>
<TBODY>
<TR align=middle>
<TD height=40>只显示下边框</TD></TR></TBODY></TABLE>

只显示左边框

<TABLE borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250 align=center border=1 frame=lhs>
<TBODY>
<TR align=middle>
<TD height=40>只显示左边框</TD></TR></TBODY></TABLE>

只显示右边框

<TABLE borderColor=#ff6600 bgColor=#FFD2D2 cellSpacing=0 cellPadding=0 width=250 align=center border=1 frame=rhs>
<TBODY>
<TR align=middle>
<TD height=40>只显示右边框</TD></TR></TBODY></TABLE>

不显示任何边框

<TABLE borderColor=#ff6600 cellSpacing=0 cellPadding=0 width=250 align=center bgColor=#fffbec border=1 frame=void>
<TBODY>
<TR align=middle>
<TD height=40>不显示任何边框</TD></TR></TBODY></TABLE>

单行单列

<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0
width=300 align=center bgColor=#ffffff border=1>
<TBODY>
<TR>
<TD height=40>
<DIV align=center>单行单列</DIV></TD></TR></TBODY></TABLE>

一行多列
一行多列
一行多列

<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0
width=300 align=center bgColor=#ffffff border=1>
<TBODY>
<TR>
<TD width=100>
<DIV align=center>一行多列</DIV></TD>
<TD width=100>
<DIV align=center>一行多列</DIV></TD>
<TD width=100>
<DIV align=center>一行多列</DIV></TD></TR></TBODY></TABLE>

一列多行
一列多行
一列多行

<TABLE
style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0
width=300 align=center bgColor=#ffffff border=1>
<TBODY>
<TR>
<TD>
<DIV align=center>一列多行</DIV></TD>
<TR>
<TD>
<DIV align=center>一列多行</DIV></TD>
<TR>
<TD>
<DIV align=center>一列多行</DIV></TD></TR></TR></TR></TBODY></TABLE>

多行多列
多行多列
多行多列
多行多列
多行多列
多行多列
多行多列
多行多列
多行多列

 

<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 width=300 align=center bgColor=#ffffff
border=1>
<TBODY>
<TR>
<TD width=100>
<DIV align=center>多行多列</DIV>
</TD>
<TD width=100>
<DIV align=center>多行多列</DIV>
</TD>
<TD width=100>
<DIV align=center>多行多列</DIV>
</TD>
<TR>
<TD>
<DIV align=center>多行多列</DIV>
</TD>
<TD>
<DIV align=center>多行多列</DIV>
</TD>
<TD>
<DIV align=center>多行多列</DIV>
</TD>
<TR>
<TD>
<DIV align=center>多行多列</DIV>
</TD>
<TD>
<DIV align=center>多行多列</DIV>
</TD>
<TD>
<DIV align=center>多行多列</DIV>
</TD>
</TR>
</TR></TR></TBODY>
</TABLE>

 

合并列的表格
合并列的表格
合并列的表格
合并列的表格
合并列的表格
合并列的表格
合并列的表格
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 width=300 align=center bgColor=#ffffff
border=1>
<TBODY>
<TR>
<TD colSpan=3>
<DIV align=center>合并列的表格</DIV>
</TD>
<TR>
<TD width=100>
<DIV align=center>合并列的表格</DIV>
</TD>
<TD width=100>
<DIV align=center>合并列的表格</DIV>
</TD>
<TD width=100>
<DIV align=center>合并列的表格</DIV>
</TD>
<TR>
<TD>
<DIV align=center>合并列的表格</DIV>
</TD>
<TD>
<DIV align=center>合并列的表格</DIV>
</TD>
<TD>
<DIV align=center>合并列的表格</DIV>
</TD>
</TR>
</TR></TR></TBODY>
</TABLE>
合并行的表格
合并行的表格
合并行的表格
合并行的表格
合并行的表格
合并行的表格
合并行的表格

<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 width=300 align=center bgColor=#ffffff border=1>
<TBODY>
<TR>
<TD width=100 rowSpan=3>
<DIV align=center>合并行的表格</DIV></TD>
<TD width=100>
<DIV align=center>合并行的表格</DIV></TD>
<TD width=100>
<DIV align=center>合并行的表格</DIV></TD>
<TR>
<TD>
<DIV align=center>合并行的表格</DIV></TD>
<TD>
<DIV align=center>合并行的表格</DIV></TD>
<TR>
<TD>
<DIV align=center>合并行的表格</DIV></TD>
<TD>
<DIV align=center>合并行的表格</DIV></TD></TR></TR></TR></TBODY></TABLE>

复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格
复杂表格

<TABLE style="BORDER-COLLAPSE: collapse"
borderColor=#000000 cellSpacing=0 width=300 align=center bgColor=#ffffff
border=1>
<TBODY>
<TR>
<TD width=60>
<DIV align=center>复杂表格</DIV></TD>
<TD width=180 colSpan=3>
<DIV align=center>复杂表格</DIV></TD>
<TD width=60>
<DIV align=center>复杂表格</DIV></TD>
<TR>
<TD rowSpan=4>
<DIV align=center>复杂表格</DIV></TD>
<TD rowSpan=3>
<DIV align=center>复杂表格</DIV></TD>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TR>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TR>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TR>
<TD>
<DIV align=center>复杂表格</DIV></TD>
<TD colSpan=3>
<DIV

align=center>复杂表格</DIV></TD></TR></TR><
/TR></TR></TR></TBODY></TABLE>

隐藏 横向 分隔线
隐藏 横向 分隔线
隐藏 横向 分隔线

<TABLE style="BORDER-COLLAPSE: collapse"
borderColor=#ff0033 cellSpacing=0 rules=cols width=300 align=center
bgColor=#e1f8ff border=1>
<TBODY>
<TR>
<TD width=100>隐藏</TD>
<TD width=100>横向</TD>
<TD width=100>分隔线</TD>
<TR>
<TD>隐藏</TD>
<TD>横向</TD>
<TD>分隔线</TD>
<TR>
<TD>隐藏</TD>
<TD>横向</TD>
<TD>分隔线</TD></TR></TR></TR></TBODY></TABLE>

隐藏 纵向 分隔线
隐藏 纵向 分隔线
隐藏 纵向 分隔线

<TABLE style="BORDER-COLLAPSE: collapse"
borderColor=#ff0033 cellSpacing=0 rules=rows width=300 align=center
bgColor=#e1f8ff border=1>
<TBODY>
<TR>
<TD width=100>隐藏</TD>
<TD width=100>纵向</TD>
<TD width=100>分隔线</TD>
<TR>
<TD>隐藏</TD>
<TD>纵向</TD>
<TD>分隔线</TD>
<TR>
<TD>隐藏</TD>
<TD>纵向</TD>
<TD>分隔线</TD></TR></TR></TR></TBODY></TABLE>

隐藏 纵横 分隔线
隐藏 纵横 分隔线
隐藏 纵横 分隔线

<TABLE style="BORDER-COLLAPSE: collapse"
borderColor=#ff0033 cellSpacing=0 rules=none width=300 align=center
bgColor=#e1f8ff border=1>
<TBODY>
<TR>
<TD width=100>隐藏</TD>
<TD width=100>纵横</TD>
<TD width=100>分隔线</TD>
<TR>
<TD>隐藏</TD>
<TD>纵横</TD>
<TD>分隔线</TD>
<TR>
<TD>隐藏</TD>
<TD>纵横</TD>
<TD>分隔线</TD></TR></TR></TR></TBODY></TABLE>

标题
文本内容——标题位于表体外的表格

<TABLE width=250 align=center border=0>
<CAPTION>标题</CAPTION>
<TBODY>
<TR>
<TD bgColor=#cccccc>
<DIV style="HEIGHT: 60px" align=center>文本内容——标题位于表体外的表格</DIV></TD></TR></TBODY></TABLE>

标题
文本内容——标题位于表体内的表格

<TABLE width=250 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#999999>
<DIV align=center><FONT color=#ffffff><B>标题</B></FONT></DIV></TD></TR>
<TR>
<TD bgColor=#cccccc>
<DIV style="HEIGHT: 60px" align=center>文本内容——标题位于表体内的表格</DIV></TD></TR></TBODY></TABLE>

标题

文本内容——标题位于边框上的表格
 

<FIELDSET style="WIDTH: 250px" align=center><LEGEND>标题</LEGEND>
<DIV align=center>文本内容——标题位于边框上的表格</DIV>
<DIV align=center>&nbsp;</DIV></FIELDSET>

表中表

文本内容——表中表效果

<TABLE cellSpacing=0 cellPadding=0 width=250 align=center>
<TBODY>
<TR>
<TD>
<FIELDSET
style="WIDTH: 250px; BORDER-TOP-STYLE: solid; BORDER-RIGHT-STYLE:
solid; BORDER-LEFT-STYLE: solid; BORDER-BOTTOM-STYLE: solid"
align=center><LEGEND style="BORDER-RIGHT: #808080 1px solid;
BORDER-TOP: #808080 1px solid; BORDER-LEFT: #808080 1px solid;
background-Color: #e1f8ff; BORDER-BOTTOM: #808080 1px solid"><FONT
color=#000000>表中表</FONT> </LEGEND>
<P align=center>文本内容——表中表效果</P></FIELDSET> </TD>
</TR></TBODY></TABLE>

最新文章

  1. React Native文件介绍
  2. Linux:U盘安装Linux系统
  3. [stm32] 利用uC-BmpCvt软件生成uc-gui可调用的bmp图片
  4. 2015ACM/ICPC亚洲区长春站 L hdu 5538 House Building
  5. 解决javax.imageio.IIOException: Can&#39;t create output stream!
  6. NotifyIcon用法
  7. 【转】angular通过$http与服务器通信
  8. Go语言简介
  9. 利用maven的resources、filter和profile实现不同环境使用不同配置文件
  10. Ubuntu 12.04(32位)下PHP环境的搭建(LAMP)
  11. Java List 汉字进行排序
  12. SDUTOJ 贪心 -商人小鑫
  13. linux下安装Sublime Text3并将它的快捷方式放进启动器中
  14. SharePoint 2010 之soap:Server服务器无法处理请求
  15. [转]koa 实现 jwt 认证
  16. Spring Boot(二):Web 综合开发
  17. centos下从源码安装openssl 1.0.1g
  18. 命令行打印文件树列表: tree
  19. Android------------fragment数据传递
  20. CodeForces - 1040B Shashlik Cooking

热门文章

  1. Educational Codeforces Round 47 (Rated for Div. 2) :C. Annoying Present(等差求和)
  2. Angularjs+bootstrap 实现横向滑屏
  3. CSS3实现3D球体旋转动画
  4. P1107 最大整数
  5. Java:static的作用分析
  6. Thymeleaf 常用th标签基础整理
  7. Java - 问题集 - linux下,jar: command not found
  8. 微信营销 推广 会议签到 活动签到 复用微信3D动画签到系统
  9. 在Android上,怎样与Kotlin一起使用Retrofit(KAD21)
  10. java调c# exe 程序,exe里写文件问题