普通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>

普通table表格样式及代码大全的更多相关文章

  1. 普通table表格样式及代码大全(全)

    普通table表格样式及代码大全(全)(一) 单实线边框表格 <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#00 ...

  2. ueditor 百度编辑器 粘贴的table表格样式边线

    粘贴html的table表格会有间隔大,黑色边线,可以在: ueditor.all.js 里 找到以下处,修改里面的样式即可 me.ready(function () { utils.cssRule( ...

  3. ANT 的Table表格样式修改方法

    注:(大家在给页面添加参数或者方法的时候,记得写上注释,方便别人查看) 1.表格行选中样式添加:(可以去beijing,精子库质控统计查看例子) (咱们以前页面上的表格都是在hover时显示选中效果, ...

  4. 关于Vue.cli 脚手架环境中引入Bootstrap时,table表格样式缺失的解决办法

    Vue+bootstrap不能正常使用table的样式 环境:下载官网的本地bootstrap包,然后在vue 的index.html引入bootstrap的css和js环境 问题描述:1. vue里 ...

  5. Table Generator 表格样式生成代码

    <style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg td{font ...

  6. 怎么设置table(表格)手机端自适应宽度

    我们在wordpress文章页面经常会用到表格,有些是从其他网页或者文档复制粘贴过来的,在电脑设备网页上都能很好的展示,但是在移动设备上或者低分辨率设备上却经常撑破列宽,很是影响美观和客户体验.这里就 ...

  7. 如何去掉bootstrap table中表格样式中横线竖线

    修改之前,表格看上去比较拥挤,因为bootstrap table插件中自带斑马线表格样式,有横线和竖线分栏,现在我们不需要这些. 应UI设计的要求,要去掉中间的横线和竖线,使用了修改需求中一种简单粗暴 ...

  8. [转]CSS如何设置html table表格边框样式

    原文地址:http://www.divcss5.com/wenji/w503.shtml 对table设置css样式边框,分为几种情况: 1.只对table设置边框 2.对td设置边框 3.对tabl ...

  9. BootStrap的table表格,栅格系统,form表单的样式

    BootStrap BootStrap的简介 1.    什么是Bootstrap 由两个前端设计师开发的一个前端的框架(Html,css,js) 简化了程序员写css的代码 2.    为什么使用B ...

随机推荐

  1. FZU:1759-Problem 1759 Super A^B mod C (欧拉降幂)

    题目链接:http://acm.fzu.edu.cn/problem.php?pid=1759 欧拉降幂是用来干啥的?例如一个问题AB mod c,当B特别大的时候int或者longlong装不下的时 ...

  2. 2426: [HAOI2010]工厂选址

    2426: [HAOI2010]工厂选址 链接 代码: /* 贪心: 奇妙!!!!! 因为所有的煤矿不是给新厂,就是给旧厂(而且旧厂的得到b) 为了使费用最小,感性的理解,那么一个煤矿给哪个厂,取决于 ...

  3. 常用操作提高效率 之 for 与in

    问题如何而来: 对于刚参加工作的我  批量删除数据通常采用的是前端传递到后台一个对象的id字符串  通过逗号分隔的多个id  或者收的直接是一个id数组 两个原理一样第一个后台要在次使用split(& ...

  4. linux基础重要命令小节

    此为L005&&L006课程内容的一个总结. 命令: 基本形式 命令 [参数] [路径或文件] 例:ls -ld /data pwd 目前所在目录 [root@moban /]# pw ...

  5. 『JavaScript』new关键字

    原文 new关键字做了什么 在JavaScript中,使用new关键字后,意味着做了如下四件事情: 创建一个新的对象,这个对象的类型是object: 设置这个新的对象的内部.可访问性和[[protot ...

  6. Sqlite Datetime类型详解

    日期和时间函数 date(timestring, modifier, modifier, ...) time(timestring, modifier, modifier, ...) datetime ...

  7. fidder工具学习抓取Firefox包

    fidder抓取Firefox的https请求 抓包之前需要设置fidder,我下面的截图是fidder4,打开fidder—>Tools—>Options如图: 选择https,勾选所有 ...

  8. 跳出for循环break和continue的区别

    1.break 跳出for循环,结束for循环 如果有两层循环,break只能跳出一层循环 2.continue 跳出本次循环,继续下一条数据的循环

  9. Vue折腾记 - (2)写一个不大靠谱的面包屑组件

    先看效果图 我把页面标题和面包屑封装到一起..就不用涉及到组件的通讯了,不然又要去监听路由或者依赖状态去获取 这里写图片描述 疑惑解答: 点击父(也就是折叠菜单)为什么会跑到子菜单第一个 因为我第一个 ...

  10. HTML如何给table添加滚动条

    HTML如何给table添加滚动条 要给table添加滚动条其实很简单,主要是给table放到一个div里去,然后再设置div显示滚动条即可.示例代码如下所示: <!--div比table大小要 ...