表格怎么去边线
篇一:EXCEL表格边框少了一条线怎么办
问
如图所示,只有一点点缺少表格边框
.
先全部选中表格,单击格式-单元格,定位到边框选项卡.把边框选项都选上(虚线的位置点击即可变位实线)
如果不起作用,可以用一个比较巧妙的
:
选中那些没有边框的单元格的附近单元格,设置它们有边框,并且只有一条边框,这个边框恰好和缺少的边框挨着即可.但是不知道系统会不会认为我的J列的确有东西,打印的时候搞的左右边距不一样。当然如果只是看看,还是有了完整的边框看起来舒服。
篇二:表格边框线处理方法
一、表格中单元格之间分隔线的隐藏方法
这个表格去掉了单元格之间的纵向分隔线
这个表格去掉了单元格之间的横向分隔线
这个表格去掉了单元格之间的纵向分隔线和横向分隔线
其实上面的三个表格都有三行三列,隐藏分隔线的诀窍在于rules,察看这三个表格的源代码,我们可以看到
1
<TABLE标签中都有rules。 它有三个
(cols,rows,none),当rules=cols时,表格会隐藏纵向的分隔线,这样我们就只能看到表格的行;当rules=rows时,则 隐藏了横向的分隔线,这样我们只能看到表格的列;而当rules=none时,纵向分隔线和横向分隔线将全部隐藏。
二、表格边框的隐藏
这是一普通的表格
只显示上边框 只显示下边框
只显示左、右边框
只显示上、下边框
只显示左边框
只显示右边框
不显示任何边框
表格边框的显示与隐藏,是可以用frame参数来控制的。请注意它只控制表格的边框图,而不影晌单元格。 只显示上边框 <table frame=above 只显示下边框 <table
frame=below
只显示左、右边框 <table frame=vsides 只显示上、下边框 <table frame=hsides 只显示左边框 <table
frame=lhs 只显示右边框 <table frame=rhs 不显示任何边框 <table frame=void 三、表格边框
这是一普通的表格
2
细 线
表格加上了漂亮的细线 格背景的不同)
表 格 <table border=1 width=200 cellpadding=0 cellspacing=0 <tr align=center<td普</td <td表
</td </tr <tr align=center<td通</td <td格
</td </tr </table<table border=0 width=200 cellspacing=1 cellpadding=0 bgcolor=#000000 <tr align=center bgcolor=#FFFFFF<td bgcolor=#FFFFFF细
</td <td bgcolor=#FFFFFF表</td </tr <tr
</td <td bgcolor=#FFFFFF格</td </tr </table
<table width=200 cellspacing=0 cellpadding=0 <tr
align=center<td style=BORDER-top: rgb(0,0,0) 1px groove; BORDER-bottom: rgb(0,0,0) 1px groove; BORDER-left: rgb(0,0,0) 1px groove; BORDER-right: rgb(0,0,0) 1px groove细</td <td style=BORDER-top: rgb(0,0,0) 1px groove; BORDER-bottom: rgb(0,0,0) 1px groove; BORDER-right: rgb(0,0,0) 1px groove表</td
</tr <tr align=center<td style=BORDER-bottom: rgb(0,0,0) 1px groove; BORDER-left: rgb(0,0,0) 1px groove; BORDER-right: rgb(0,0,0) 1px groove线</td <td
style=BORDER-bottom:
rgb(0,0,0) 1px groove; BORDER-right: rgb(0,0,0) 1px
3
groove格</td </tr </table
细 线
表 格
<table width=200 cellspacing=0 cellpadding=0 <tr
align=center<td style=BORDER-top: rgb(0,0,0) 1px dotted;
(利用cellspacing1像素间隙和表格与单元align=center
bgcolor=#FFFFFF<td bgcolor=#FFFFFF线
这和上面那个可不一样,它用的是CSS,效果却一样。
(对单元格border的定义)
再进一步,把边框变成虚线,同样是
CSSBORDER-bottom: rgb(0,0,0) 1px dotted; BORDER-left: rgb(0,0,0) 1px
dotted; BORDER-right: rgb(0,0,0) 1px dotted细</td
<td 的神奇作用。
style=BORDER-top: rgb(0,0,0) 1px dotted; BORDER-bottom: rgb(0,0,0) 1px dotted; BORDER-right: rgb(0,0,0) 1px dotted表</td </tr <td
style=BORDER-bottom: rgb(0,0,0) 1px dotted;
BORDER-left: rgb(0,0,0) 1px dotted; BORDER-right: rgb(0,0,0) 1px dotted线</td <td
style=BORDER-bottom: rgb(0,0,0) 1px dotted;
4
BORDER-right: rgb(0,0,0) 1px dotted格</td </tr
</table
细线表格的扩展应用,奥妙就是在第个单元<table
width=200 border=0 cellspacing=2 cellpadding=0 格中再套
入一个表格。
<tr<td <table width=100% border=0 cellspacing=1 cellpadding=0 bgcolor=#000000 <tr <td
bgcolor=#FFFFFF </td </tr </table </td <td<table width=100% border=0 cellspacing=1 cellpadding=0 bgcolor=#000000 <tr<td bgcolor=#FFFFFF </td </tr </table </td </tr <tr<td <table width=100% border=0 cellspacing=1 cellpadding=0
bgcolor=#000000<tr <td bgcolor=#FFFFFF </td</tr</table </td <td <table width=100% border=0 cellspacing=1 cellpadding=0
bgcolor=#000000<tr <td bgcolor=#FFFFFF </td</tr</table </td </tr </table
立体感的表格 种效果)
<table border=1 bordercolorlight=#ffffff bordercolordark=#ffffff width=200 cellpadding=0
5
cellspacing=0 <tr align=center<td
bgcolor=#B7B7B7bordercolorlight=#000000
bgcolor=#B7B7B7bordercolorlight=#000000
bordercolordark=#eeeeee 表</td </tr <tr
align=center<td
bgcolor=#B7B7B7bordercolorlight=#000000
bordercolordark=#eeeeee 体</td <td
bgcolor=#B7B7B7bordercolorlight=#000000
bordercolordark=#eeeeee 格</td </tr </table
无名表格
给表格加上一个表头
(应用<fieldset和</legend标签) 表中表效果?
给表头再加个框
(用CSS为<legnd定义一个边框)
<table width=200 cellpadding=0 cellspacing=0
<tr<td<fieldset style=width:200 align=center <legend 无名表格 </legend<p
align=right</fieldset</td </tr </table
<table width=200 cellspacing=0 cellpadding=0 <tr<td <fieldset style=width: 200; color: #B7B7B7; border-style: groove align=center<legend style=color: blue; border: 1 solid #000000 表中表效果?
6
</legend<br </fieldset </td </tr </table
<table width=200 <tr<td<fieldset style=width:200 align=center <legend<table style=border: 1 solid #000000 width=80 cellspacing=1 cellpadding=0 height=20
(简单的亮暗边框设置,注意只有IE支持这
bordercolordark=#eeeeee 立</td <td
看起来和上面的一样,可是这个才是真正的
<tr<td<font color=blue表中表效果?
</font</td </tr </table
在标题那边嵌入一段小小的CSS就可以实现啦。虽然只能实
现细线表格。。但是一目了然。嘻嘻
<style type=text/css .table1{background:#000000;} 色
*/
.table1 td, .table1
th{background:#FFFFFF}
<table cellpadding=3 cellspacing=1 border=0 width=200 height=50 class=table1 <td</td <td</td </tr
/* 这边定义了表格的背景,也就是边框的颜<tr
/* 这边定义了表格内的单元格背景是白色<tr 啦,就细
线就这样出现啦 */ </style
7
图片会产生不一样的边框样式哦
<td</td <td</td </table
这边的表格结构是不是很清楚啦。。其中关键的是要设置
cellspacing为1还有就是定义它的class为table1。。关键的
俩个千万不能忘了哦,不然效果出不来的哦。。
这边你也可以定义背景为图片啦。不一样的</tr
表格边框线颜色的处理:
<table width=100% height=100% border=0
cellspacing=0 cellpadding=0 style=&quo(转 载
于:wWw.xLTkwj.cOM 小 龙 文档网:表格怎么去边
线)t;border-left: 1 solid #000000; border-right: 1 solid
#C0C0C0;
border-top: 1 solid #000000; border-bottom: 1 solid
#C0C0C0 <tr <td
</td </tr </table 注:
style=border-left: 1 solid #000000; 表格左边 边框 颜色
<br<br
border-right: 1 solid #C0C0C0; 表格右边 边框 颜色
<br<br
border-top: 1 solid #000000; 表格上边 边框 颜色
<br<br
border-bottom: 1 solid #C0C0C0 表格下边 边框 颜色
8
<br<br
篇三:设置WORD表格的边框线为无、删除WORD表格的线条
要想设置Word表格的边框线条不显示出来,最好的办法就是设置线条为无,即不启用边框线。这是最好的办法,方法如下:
选中表格,如下图,然后点击鼠标右键,弹出如下图的菜单。
如上图,选择表格属性,弹出如下图。
电脑教程
上图,选择表格选项卡,然后,点击对话框下面的边框和底纹,弹出如下图。
上图中,选择边框选项卡,然后,选择无,这样就行了,最后点击确定退出即可。
现在,就设置好了,可是,在文档编辑状态下,我们仍然能够看到表格单元格的边框线,这是为什么呢,这是因为考虑到您的操作上的方便,暂时能看到线条。
当我们在打印预览状态或直接打印的时候,表格的边框线条、单元格四周的线,就不会出来了。
还有另外一种方法就是,可以设置边框边框线条的意思和文档背景颜色一样,这样,就看不出来了,也能取到取消边框线的目的。
9
10