普通table表格样式及代码大全(全)
普通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; BORDER-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
style="BORDER-RIGHT: #4a4a84 2px dashed; BORDER-TOP: #4a4a84 2px
dashed; BACKGROUND: #ffffff; BORDER-LEFT: #4a4a84 2px dashed;
BORDER-BOTTOM: #4a4a84 2px dashed">
<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
style="BORDER-RIGHT: #4a4a84 2px solid; BORDER-TOP: #4a4a84 2px solid;
BACKGROUND: #ffffff; BORDER-LEFT: #4a4a84 2px solid; BORDER-BOTTOM:
#4a4a84 2px solid">
<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>
普通table表格样式及代码大全(全)的更多相关文章
- 普通table表格样式及代码大全
普通table表格样式及代码大全(全)(一) 单实线边框表格 <table style="border-collapse: collapse" borderColor=#0 ...
- ueditor 百度编辑器 粘贴的table表格样式边线
粘贴html的table表格会有间隔大,黑色边线,可以在: ueditor.all.js 里 找到以下处,修改里面的样式即可 me.ready(function () { utils.cssRule( ...
- ANT 的Table表格样式修改方法
注:(大家在给页面添加参数或者方法的时候,记得写上注释,方便别人查看) 1.表格行选中样式添加:(可以去beijing,精子库质控统计查看例子) (咱们以前页面上的表格都是在hover时显示选中效果, ...
- 关于Vue.cli 脚手架环境中引入Bootstrap时,table表格样式缺失的解决办法
Vue+bootstrap不能正常使用table的样式 环境:下载官网的本地bootstrap包,然后在vue 的index.html引入bootstrap的css和js环境 问题描述:1. vue里 ...
- Table Generator 表格样式生成代码
<style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg td{font ...
- 怎么设置table(表格)手机端自适应宽度
我们在wordpress文章页面经常会用到表格,有些是从其他网页或者文档复制粘贴过来的,在电脑设备网页上都能很好的展示,但是在移动设备上或者低分辨率设备上却经常撑破列宽,很是影响美观和客户体验.这里就 ...
- html table表格导出excel的方法 html5 table导出Excel HTML用JS导出Excel的五种方法 html中table导出Excel 前端开发 将table内容导出到excel HTML table导出到Excel中的解决办法 js实现table导出Excel,保留table样式
先上代码 <script type="text/javascript" language="javascript"> var idTmr; ...
- 如何去掉bootstrap table中表格样式中横线竖线
修改之前,表格看上去比较拥挤,因为bootstrap table插件中自带斑马线表格样式,有横线和竖线分栏,现在我们不需要这些. 应UI设计的要求,要去掉中间的横线和竖线,使用了修改需求中一种简单粗暴 ...
- [转]CSS如何设置html table表格边框样式
原文地址:http://www.divcss5.com/wenji/w503.shtml 对table设置css样式边框,分为几种情况: 1.只对table设置边框 2.对td设置边框 3.对tabl ...
随机推荐
- spin_lock & mutex_lock的差别?
本文由该问题引入到内核锁的讨论,归纳例如以下 为什么须要内核锁? 多核处理器下,会存在多个进程处于内核态的情况,而在内核态下,进程是能够訪问全部内核数据的,因此要对共享数据进行保护,即相互排斥处理 有 ...
- oracle 字符串切割成结果集方法
oracle字符串切割几种方式 方法一: SELECT COLUMN_VALUE FROM TABLE(SYS.ODCIVARCHAR2LIST('1','2','3','4','5')); 方法二: ...
- typeerror $.ajax is not a function
在web开发中使用jQuery进行前端开发遇到这么个问题,纠结了很久终于解决了,下面说一下解决方法. 大家可以参照下面几种排查的方法. 1.首先检查是否引用jQuery的库. 2.页面如果使用的ifr ...
- maven提示错误的解决办法
import或者new一个的maven project的时候,提示如下错误 Description Resource Path Location TypeCannot read ...
- C#中的Dictionary字典类介绍
Dictionary字典类介绍 必须包含名空间System.Collection.Generic Dictionary里面的每一个元素都是一个键值对(由二个元素组成:键和值) 键必须是 ...
- opencart 模块开发详解
opencart 模块开发详解 由 xiekanxiyang » 2013年 7月 11日 10:17 pm opencart 将页面分成若干模块, 每个模块可以有多个实例(可能这样说不是很恰当) 每 ...
- 共享受限资源,Brian的同步规则
说明:如果一个变量是boolean,则此变量是原子性的,即赋值和返回值简单的操作在发生时没有中断的可能. 递增不是原子性炒作. 解决共享资源竞争: 1. 通过加锁,锁语句会产生相互排斥的效果,此种机制 ...
- Xcode添加静态库以及编译选项配置常见问题
一,Xcode编译出现Link错误,出现"duplicate symbols for architecture i386 clang"提示.问题:链接时,项目有重名文件.解决:根据 ...
- 增强iOS应用程序性能的提示和技巧(25个)
转自 http://www.cocoachina.com/newbie/basic/2013/0522/6259.html 在开发iOS应用程序时,让程序具有良好的性能是非常关键的.这也是用户所期望的 ...
- (java)从零开始之-反射Reflect
反射: 当一个字节码文件加载到内存的时候,jvm会对该字节码进行解剖,然后会创建一个对象的Class对象,把字节码文件的信息全部都存储到该Class对象中,我们只要获取到Class对象,我们就可以使用 ...